@@ -15,6 +15,7 @@ mkdir -p "$ALT_PROVISIONING_PROFILES_DIR"
15
15
APPLE_TEAM_ID=" 4399GN35BJ"
16
16
CODE_SIGN_IDENTITY=" Developer ID Application: Coder Technologies Inc (${APPLE_TEAM_ID} )"
17
17
18
+ # Extract the ID of each provisioning profile
18
19
APP_PROVISIONING_PROFILE_ID=$( get_uuid " $APP_PROF_PATH " )
19
20
EXT_PROVISIONING_PROFILE_ID=$( get_uuid " $EXT_PROF_PATH " )
20
21
PTP_SUFFIX=" -systemextension"
@@ -55,16 +56,22 @@ create-dmg \
55
56
" $built_app_path " \
56
57
./
57
58
59
+ # Add dmg to build artifacts
58
60
dmg_path=" ./build/Coder Desktop.dmg"
59
61
mv ./Coder\ Desktop* .dmg " $dmg_path "
60
62
63
+ # Notarize
61
64
xcrun notarytool store-credentials " notarytool-credentials" \
62
65
--apple-id " $APPLE_ID " \
63
66
--team-id " $APPLE_TEAM_ID " \
64
67
--password " $APPLE_ID_PASSWORD " \
65
68
--keychain " $KEYCHAIN_PATH "
66
69
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
68
74
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