From 813e69efaf53e44bd270729463035d9f6715387b Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Thu, 6 Jun 2024 23:06:34 +0200 Subject: [PATCH] CI: Fix file structure of the notarized app bundle Apparently this is a common mistake when using ditto. The `--keepParent` flag should keep the topmost folder in the archive as well, so it can be properly notarized. --- .github/actions/sign-godot-project/macos/sign.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/sign-godot-project/macos/sign.sh b/.github/actions/sign-godot-project/macos/sign.sh index 1590de4..ab71705 100755 --- a/.github/actions/sign-godot-project/macos/sign.sh +++ b/.github/actions/sign-godot-project/macos/sign.sh @@ -40,7 +40,7 @@ codesign --verify "${app_path}" echo "Archiving and notarizing the signed app..." -ditto -ck "${app_path}" "${archive_path}" +ditto -ck --keepParent "${app_path}" "${archive_path}" xcrun notarytool submit "${archive_path}" --apple-id ${apple_dev_id} --team-id ${apple_dev_team_id} --password ${apple_dev_password} --wait echo "Stapling the notarization ticket to the signed app..."