mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 04:31:58 +08:00
Try to fix OSX builds
This commit is contained in:
parent
25bcff3656
commit
4e8f8f4b70
@ -91,7 +91,9 @@ rm -rf $macosfolder/local-lib/lib/perl5/darwin-thread-multi-2level/Alien/wxWidge
|
||||
echo "Relocating dylib paths..."
|
||||
for bundle in $(find $macosfolder/local-lib/lib/perl5/darwin-thread-multi-2level/auto/Wx -name '*.bundle') $(find $macosfolder/local-lib/lib/perl5/darwin-thread-multi-2level/Alien/wxWidgets -name '*.dylib' -type f); do
|
||||
chmod +w $bundle
|
||||
find $SLIC3R_DIR/local-lib -name '*.dylib' -exec bash -c 'install_name_tool -change "{}" "@executable_path/local-lib/lib/perl5/darwin-thread-multi-2level/Alien/wxWidgets/osx_cocoa_3_0_2_uni/lib/$(basename {})" '$bundle \;
|
||||
for dylib in $(otool -l $bundle | grep .dylib | grep local-lib | awk '{print $2}'); do
|
||||
echo install_name_tool -change "$dylib" "@executable_path/local-lib/lib/perl5/darwin-thread-multi-2level/Alien/wxWidgets/osx_cocoa_3_0_2_uni/lib/$(basename $dylib)" $bundle
|
||||
done
|
||||
done
|
||||
|
||||
echo "Copying startup script..."
|
||||
|
Loading…
x
Reference in New Issue
Block a user