detect version of vapoursynth Python dependency in Mac OS packaging

This commit is contained in:
Drew Weymouth
2023-03-26 11:02:18 -07:00
parent eb09489bc5
commit a8f17dafd9
2 changed files with 6 additions and 2 deletions
+1 -2
View File
@@ -11,8 +11,7 @@ build:
package_macos:
fyne package -os darwin -name $(app_name) -icon $(icon_path_mac)
dylibbundler -od -b -x ./Supersonic.app/Contents/MacOS/supersonic -d ./Supersonic.app/Contents/Frameworks/ -p @executable_path/../Frameworks/
install_name_tool -change "/usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/Python" "@executable_path/../Frameworks/Python" "./Supersonic.app/Contents/Frameworks/libvapoursynth-script.0.dylib"
cp /usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/Python ./Supersonic.app/Contents/Frameworks
./copy_python_dep_osx.sh
codesign --force --deep --preserve-metadata=entitlements,requirements,flags,runtime --sign - "./Supersonic.app/Contents/MacOS/supersonic"
package_windows:
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
PYTHON_PATH=$(otool -L ./Supersonic.app/Contents/Frameworks/libvapoursynth-script.0.dylib | grep 'Python' | awk '{print $1}')
install_name_tool -change "$PYTHON_PATH" "@executable_path/../Frameworks/Python" "./Supersonic.app/Contents/Frameworks/libvapoursynth-script.0.dylib"
cp "$PYTHON_PATH" ./Supersonic.app/Contents/Frameworks