ci: Fix build-dmg when crashpad_handler is disabled

This commit is contained in:
Luke Street 2022-06-13 19:20:09 -04:00
parent 25a0fe4a73
commit 3abaf6b734
2 changed files with 3 additions and 4 deletions

View File

@ -49,9 +49,6 @@ jobs:
libpulse-dev libudev-dev libpng-dev libncurses5-dev libx11-xcb-dev libfreetype-dev \
libxinerama-dev libxcursor-dev python3-markupsafe libgtk-3-dev
yarn global add @sentry/cli
echo "$(yarn global bin)" >> $GITHUB_PATH
# setup buildcache
curl -LSfs https://github.com/encounter/buildcache/releases/download/$BUILDCACHE_VERSION/buildcache-linux.tar.gz | tar xz -C "$RUNNER_WORKSPACE"
echo "$RUNNER_WORKSPACE"/buildcache/bin >> $GITHUB_PATH

View File

@ -1,7 +1,9 @@
#!/bin/bash -ex
cd build/install
for i in Metaforce crashpad_handler; do
codesign --timestamp --options runtime -s "$CODESIGN_IDENT" Metaforce.app/Contents/MacOS/$i
if [ -x "Metaforce.app/Contents/MacOS/$i" ]; then
codesign --timestamp --options runtime -s "$CODESIGN_IDENT" "Metaforce.app/Contents/MacOS/$i"
fi
done
create-dmg Metaforce.app --identity="$CODESIGN_IDENT" .
xcrun altool -t osx -f *.dmg --primary-bundle-id com.axiodl.Metaforce \