summaryrefslogtreecommitdiff
path: root/os/macosx
diff options
context:
space:
mode:
authorOwen Rudge <owen@owenrudge.net>2021-01-28 12:54:56 +0000
committerOwen Rudge <owen@owenrudge.net>2021-01-28 19:15:36 +0000
commit1187dc3217417d5cdc4f686b8ea2c0bae9afd99f (patch)
tree63673a27686ec77970beea2b63028ba0da3c43de /os/macosx
parent3dac139b005f41e8d8e1026f08dcffdf466aad54 (diff)
downloadopenttd-1187dc3217417d5cdc4f686b8ea2c0bae9afd99f.tar.xz
Feature: [Actions] Create .zip for macOS build
Diffstat (limited to 'os/macosx')
-rwxr-xr-xos/macosx/notarize.sh10
1 files changed, 10 insertions, 0 deletions
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 <<EOF > 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]}"