fix(ci): fix VapourSynth dylib file existence check on macOS (#966)

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
tofuliang
2026-06-26 08:16:22 -07:00
committed by GitHub
co-authored by Sisyphus
parent 67623366f5
commit aac77049b3
+12 -2
View File
@@ -1,5 +1,15 @@
#!/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"
VAPOURSYNTH_LIB=./Supersonic.app/Contents/Frameworks/libvapoursynth-script.0.dylib
# Check if VapourSynth library exists before processing
if [ ! -f "$VAPOURSYNTH_LIB" ]; then
echo "VapourSynth library not found, skipping Python dependency copy"
exit 0
fi
PYTHON_PATH=$(otool -L "$VAPOURSYNTH_LIB" | grep 'Python' | awk '{print $1}')
if [ -n "$PYTHON_PATH" ]; then
install_name_tool -change "$PYTHON_PATH" "@executable_path/../Frameworks/Python" "$VAPOURSYNTH_LIB"
cp "$PYTHON_PATH" ./Supersonic.app/Contents/Frameworks
fi