ci: wrap symbol generation in x86_64 if since we don't have crashpad yet

This commit is contained in:
itsmattkc
2022-01-30 12:10:23 -08:00
parent a455e3f9b4
commit b0c5f47695
+11 -7
View File
@@ -382,9 +382,10 @@ jobs:
MACDEPLOYQT=$(pwd)/opt/olive-editor/bin/macdeployqt
else
MACDEPLOYQT=$DEP_LOCATION/bin/macdeployqt
MACDEPLOYQT_ARGS="-executable=$BUNDLE_NAME/Contents/MacOS/olive-crashhandler"
fi
$MACDEPLOYQT $BUNDLE_NAME -executable=$BUNDLE_NAME/Contents/MacOS/olive-crashhandler
$MACDEPLOYQT $BUNDLE_NAME $MACDEPLOYQT_ARGS
$DOWNLOAD_TOOL https://github.com/arl/macdeployqtfix/raw/master/macdeployqtfix.py
python2 macdeployqtfix.py $BUNDLE_NAME/Contents/MacOS/Olive $DEP_LOCATION
@@ -397,12 +398,15 @@ jobs:
done
done
# Crashpad symbols
$DEP_LOCATION/bin/dump_syms $BUNDLE_NAME/Contents/MacOS/Olive > Olive.sym
SYM_HEADER=($(head -n 1 Olive.sym)) # Read first line of symbol file
SYM_DIR=$BUNDLE_NAME/Contents/Resources/symbols/Olive/${SYM_HEADER[3]}
mkdir -p "$SYM_DIR"
mv Olive.sym "$SYM_DIR"
if [ "${{ matrix.os-arch }}" == "x86_64" ]
then
# Crashpad symbols
$DEP_LOCATION/bin/dump_syms $BUNDLE_NAME/Contents/MacOS/Olive > Olive.sym
SYM_HEADER=($(head -n 1 Olive.sym)) # Read first line of symbol file
SYM_DIR=$BUNDLE_NAME/Contents/Resources/symbols/Olive/${SYM_HEADER[3]}
mkdir -p "$SYM_DIR"
mv Olive.sym "$SYM_DIR"
fi
- name: Deploy Packages
working-directory: ${{ runner.workspace }}/build