From 3abaf6b7341d292bb1d154981a56afd3c1a47e54 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Mon, 13 Jun 2022 19:20:09 -0400 Subject: [PATCH] ci: Fix build-dmg when crashpad_handler is disabled --- .github/workflows/build.yml | 3 --- ci/build-dmg.sh | 4 +++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5bd27d4c5..868c2d389 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/ci/build-dmg.sh b/ci/build-dmg.sh index fe429d03c..57bb89506 100755 --- a/ci/build-dmg.sh +++ b/ci/build-dmg.sh @@ -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 \