You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
red "❌ Code signing failed. Please ensure you have a valid code signing identity."
119
+
exit 1
120
+
fi
121
+
122
+
green "✔️ Code signed successfully."
123
+
cd"$PKG_DIR"||exit 1
124
+
}
125
+
100
126
package_workflow() {
101
127
bold "Packaging .alfredworkflow file..."
102
128
ditto -ck "$RELEASE_DIR""$PACKAGE_NAME"
@@ -109,6 +135,33 @@ zip_workflow() {
109
135
green "✔️ Zipped workflow."
110
136
}
111
137
138
+
notarize_app() {
139
+
bold "Notarizing the build..."
140
+
141
+
if [[ $SHOULD_TAG!="y"&&$SHOULD_TAG!="Y" ]];then
142
+
yellow "⚡ Skipping notarization as no tag was created."
143
+
return
144
+
fi
145
+
146
+
if [[ -z"${APPLE_ID:-}"||-z"${APPLE_TEAM_ID:-}"||-z"${APPLE_DEVELOPER_APP_PASSWORD:-}" ]];then
147
+
red "❌ Missing Apple ID, Team ID, or Developer App Password. Please set these environment variables."
148
+
exit 1
149
+
fi
150
+
151
+
xcrun notarytool submit "${PACKAGE_NAME}.zip" \
152
+
--wait \
153
+
--apple-id "$APPLE_ID" \
154
+
--team-id "$APPLE_TEAM_ID" \
155
+
--password "$APPLE_DEVELOPER_APP_PASSWORD"
156
+
157
+
if [[ $?-ne 0 ]];then
158
+
red "❌ Notarization failed. Please check your credentials and try again."
159
+
exit 1
160
+
fi
161
+
162
+
green "✔️ Notarization completed successfully."
163
+
}
164
+
112
165
open_github_release_page() {
113
166
bold "Opening GitHub release page for tag ${VERSION}..."
114
167
open "https://github.com/dineshgowda24/alfred-gcp-workflow/releases/new?tag=${VERSION}&title=${VERSION}&body=%23%23%20Changes%0A%0AUser-facing%0A-%20TODO"
0 commit comments