mirror of https://github.com/AxioDL/metaforce.git
ci: Fix build-dmg when crashpad_handler is disabled
This commit is contained in:
parent
25a0fe4a73
commit
3abaf6b734
|
@ -49,9 +49,6 @@ jobs:
|
||||||
libpulse-dev libudev-dev libpng-dev libncurses5-dev libx11-xcb-dev libfreetype-dev \
|
libpulse-dev libudev-dev libpng-dev libncurses5-dev libx11-xcb-dev libfreetype-dev \
|
||||||
libxinerama-dev libxcursor-dev python3-markupsafe libgtk-3-dev
|
libxinerama-dev libxcursor-dev python3-markupsafe libgtk-3-dev
|
||||||
|
|
||||||
yarn global add @sentry/cli
|
|
||||||
echo "$(yarn global bin)" >> $GITHUB_PATH
|
|
||||||
|
|
||||||
# setup buildcache
|
# setup buildcache
|
||||||
curl -LSfs https://github.com/encounter/buildcache/releases/download/$BUILDCACHE_VERSION/buildcache-linux.tar.gz | tar xz -C "$RUNNER_WORKSPACE"
|
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
|
echo "$RUNNER_WORKSPACE"/buildcache/bin >> $GITHUB_PATH
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
#!/bin/bash -ex
|
#!/bin/bash -ex
|
||||||
cd build/install
|
cd build/install
|
||||||
for i in Metaforce crashpad_handler; do
|
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
|
done
|
||||||
create-dmg Metaforce.app --identity="$CODESIGN_IDENT" .
|
create-dmg Metaforce.app --identity="$CODESIGN_IDENT" .
|
||||||
xcrun altool -t osx -f *.dmg --primary-bundle-id com.axiodl.Metaforce \
|
xcrun altool -t osx -f *.dmg --primary-bundle-id com.axiodl.Metaforce \
|
||||||
|
|
Loading…
Reference in New Issue