ci: implement mac bundle hacks

This commit is contained in:
itsmattkc
2022-01-30 22:48:33 -08:00
parent 37b695c5e1
commit bc81f5d832
+8 -1
View File
@@ -380,12 +380,16 @@ jobs:
mv app/$BUNDLE_NAME .
mkdir $BUNDLE_NAME/Contents/Frameworks
dylibbundler -b -x "$BUNDLE_NAME/Contents/MacOS/Olive" -s "$DEP_LOCATION/lib" -d "$BUNDLE_NAME/Contents/Frameworks" -p "@executable_path/../Frameworks" $DYLIBBUNDLER_EXTRA_ARGS
dylibbundler -b -ns -x "$BUNDLE_NAME/Contents/MacOS/Olive" -s "$DEP_LOCATION/lib" -d "$BUNDLE_NAME/Contents/Frameworks" -p "@executable_path/../Frameworks" $DYLIBBUNDLER_EXTRA_ARGS
# Copy Qt frameworks and plugins
cp -R $DEP_LOCATION/lib/Qt*.framework $BUNDLE_NAME/Contents/Frameworks
cp -R $DEP_LOCATION/plugins $BUNDLE_NAME/Contents
# HACK: On x86_64, dylibbundler doesn't resolve this symlink. Weirdly it does on ARM64,
# but perhaps I'll bring it up with them soon.
cp $DEP_LOCATION/Frameworks/libpng16.16.37.0.dylib $DEP_LOCATION/Frameworks/libpng16.16.dylib
if [ "${{ matrix.os-arch }}" == "x86_64" ]
then
# Crashpad symbols
@@ -396,6 +400,9 @@ jobs:
mv Olive.sym "$SYM_DIR"
fi
# TEMP: Not sure if this will do anything, just trying it out
xattr -cr $BUNDLE_NAME
- name: Deploy Packages
working-directory: ${{ runner.workspace }}/build
shell: bash