Feature: [Actions] Create .zip for macOS build

This commit is contained in:
Owen Rudge
2021-01-28 12:54:56 +00:00
parent 3dac139b00
commit 1187dc3217
2 changed files with 33 additions and 0 deletions

View File

@@ -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]}"