Skip to content

Commit b93772b

Browse files
committed
notarize
1 parent 1e2a114 commit b93772b

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

scripts/build.sh

+10-3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ mkdir -p "$ALT_PROVISIONING_PROFILES_DIR"
1515
APPLE_TEAM_ID="4399GN35BJ"
1616
CODE_SIGN_IDENTITY="Developer ID Application: Coder Technologies Inc (${APPLE_TEAM_ID})"
1717

18+
# Extract the ID of each provisioning profile
1819
APP_PROVISIONING_PROFILE_ID=$(get_uuid "$APP_PROF_PATH")
1920
EXT_PROVISIONING_PROFILE_ID=$(get_uuid "$EXT_PROF_PATH")
2021
PTP_SUFFIX="-systemextension"
@@ -55,16 +56,22 @@ create-dmg \
5556
"$built_app_path" \
5657
./
5758

59+
# Add dmg to build artifacts
5860
dmg_path="./build/Coder Desktop.dmg"
5961
mv ./Coder\ Desktop*.dmg "$dmg_path"
6062

63+
# Notarize
6164
xcrun notarytool store-credentials "notarytool-credentials" \
6265
--apple-id "$APPLE_ID" \
6366
--team-id "$APPLE_TEAM_ID" \
6467
--password "$APPLE_ID_PASSWORD" \
6568
--keychain "$KEYCHAIN_PATH"
6669

67-
# xcrun notarytool submit "$dmg_path" --keychain-profile "notarytool-credentials" --wait
70+
xcrun notarytool submit "$dmg_path" \
71+
--keychain-profile "notarytool-credentials" \
72+
--keychain "$KEYCHAIN_PATH" \
73+
--wait
6874

69-
# xcrun stapler staple "$dmg_path"
70-
# xcrun stapler staple "$app_path"
75+
# Staple the notarization to the app and dmg, so they work without internet
76+
xcrun stapler staple "$dmg_path"
77+
xcrun stapler staple "$app_path"

0 commit comments

Comments
 (0)