File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 115
115
system (" codesign --sign - --force --preserve-metadata=entitlements $file " );
116
116
}
117
117
118
- unlink (" $repo_root /$dist .tar.gz" );
119
118
my $files = join (" " , map s | ^$install_dir/|| r , keys %deps );
119
+
120
+ # Package vde_vmnet and prerequisites from /opt/vde → vde in the tarball
121
+ my $opt_vde = " /opt/vde" ;
122
+ die if -e " /tmp/$dist /vde" ;
123
+ if (-f " $opt_vde /bin/vde_vmnet" ) {
124
+ my $dylib = " libvdeplug.3.dylib" ;
125
+ system (" mkdir -p /tmp/$dist /vde/lib" );
126
+ system (" cp $opt_vde /lib/$dylib /tmp/$dist /vde/lib/$dylib " );
127
+ $files .= " vde/lib/$dylib " ;
128
+
129
+ system (" mkdir -p /tmp/$dist /vde/bin" );
130
+ for my $tool (qw( vde_switch vde_vmnet) ) {
131
+ system (" cp $opt_vde /bin/$tool /tmp/$dist /vde/bin/$tool " );
132
+ system " install_name_tool -change $opt_vde /lib/$dylib \@ executable_path/../$dylib /tmp/$dist /vde/bin/$tool 2>&1" ;
133
+ $files .= " vde/bin/$tool " ;
134
+ }
135
+ }
136
+
137
+ unlink (" $repo_root /$dist .tar.gz" );
120
138
system (" tar cvfz $repo_root /$dist .tar.gz -C /tmp/$dist $files " );
139
+
121
140
exit ;
122
141
123
142
# File references may involve multiple symlinks that need to be recorded as well, e.g.
You can’t perform that action at this time.
0 commit comments