File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -152,11 +152,18 @@ create_installer() {
152
152
" ${darwin_toolchain_version} " " ${swift_source_dir} /utils/darwin-installer-scripts"
153
153
154
154
# Notarize the toolchain installer
155
- local request_output=$( xcrun altool --notarize-app --type osx \
156
- --file " ${darwin_toolchain_installer_package} " \
157
- --primary-bundle-id " ${darwin_toolchain_bundle_identifier} " \
158
- -u " ${DARWIN_TOOLCHAIN_NOTARIZE_EMAIL} " \
159
- -p " @env:DARWIN_TOOLCHAIN_NOTARIZE_PASSWORD" )
155
+ local notarize_command=(" xcrun" " altool" " --notarize-app" " --type" " osx" \
156
+ " --file" " ${darwin_toolchain_installer_package} " \
157
+ " --primary-bundle-id" " ${darwin_toolchain_bundle_identifier} " \
158
+ " -u" " ${DARWIN_TOOLCHAIN_NOTARIZE_EMAIL} " \
159
+ " -p" " @env:DARWIN_TOOLCHAIN_NOTARIZE_PASSWORD" )
160
+
161
+ if [ -n " ${DARWIN_TOOLCHAIN_NOTARIZE_TEAM_ID} " ]; then
162
+ notarize_command=(" ${notarize_command[@]} " " --asc-provider" " ${DARWIN_TOOLCHAIN_NOTARIZE_TEAM_ID} " )
163
+ fi
164
+
165
+ local request_output=$( ${notarize_command[@]} )
166
+
160
167
local request_uuid=$( echo " $request_output " | grep " RequestUUID = " | awk ' {print $3}' )
161
168
162
169
local request_status=$( xcrun altool --notarization-info " $request_uuid " \
You can’t perform that action at this time.
0 commit comments