From 1187dc3217417d5cdc4f686b8ea2c0bae9afd99f Mon Sep 17 00:00:00 2001 From: Owen Rudge Date: Thu, 28 Jan 2021 12:54:56 +0000 Subject: Feature: [Actions] Create .zip for macOS build --- os/macosx/notarize.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'os') diff --git a/os/macosx/notarize.sh b/os/macosx/notarize.sh index 3434c3125..55405cdd8 100755 --- a/os/macosx/notarize.sh +++ b/os/macosx/notarize.sh @@ -56,3 +56,13 @@ cat < notarize.json EOF gon notarize.json + +app_filename=(_CPack_Packages/*/Bundle/openttd-*/OpenTTD.app) + +if [ "${app_filename}" = "_CPack_Packages/*/Bundle/openttd-*/OpenTTD.app" ]; then + echo "No .app found in the _CPack_Packages directory, skipping stapling." + exit 0 +fi; + +# Now staple the ticket to the .app +xcrun stapler staple "${app_filename[0]}" -- cgit v1.2.3-70-g09d2