@@ -313,24 +313,6 @@ function sign_app_binaries() {
313
313
mv " ${app_path} " " ${dmg_source_directory} "
314
314
notarization_key_file=$( mktemp)
315
315
316
- if [[ $can_code_sign = true ]]; then
317
- echo " Creating temporary DMG at ${dmg_file_path} using ${dmg_source_directory} to notarize app bundle"
318
- hdiutil create -volname Zed -srcfolder " ${dmg_source_directory} " -ov -format UDZO " ${dmg_file_path} "
319
-
320
- echo " Code-signing DMG"
321
- /usr/bin/codesign --deep --force --timestamp --options runtime --sign " $IDENTITY " " $( pwd) /${dmg_file_path} " -v
322
-
323
- echo " Notarizing DMG with Apple"
324
- echo " $APPLE_NOTARIZATION_KEY " > " $notarization_key_file "
325
- " ${xcode_bin_dir_path} /notarytool" submit --wait --key " $notarization_key_file " --key-id " $APPLE_NOTARIZATION_KEY_ID " --issuer " $APPLE_NOTARIZATION_ISSUER_ID " " ${dmg_file_path} "
326
-
327
- echo " Removing temporary DMG (used only for notarization)"
328
- rm " ${dmg_file_path} "
329
-
330
- echo " Stapling notarization ticket to ${dmg_source_directory} /${bundle_name} "
331
- " ${xcode_bin_dir_path} /stapler" staple " ${dmg_source_directory} /${bundle_name} "
332
- fi
333
-
334
316
echo " Adding symlink to /Applications to ${dmg_source_directory} "
335
317
ln -s /Applications ${dmg_source_directory}
336
318
@@ -349,9 +331,10 @@ function sign_app_binaries() {
349
331
if [[ $can_code_sign = true ]]; then
350
332
echo " Notarizing DMG with Apple"
351
333
/usr/bin/codesign --deep --force --timestamp --options runtime --sign " $IDENTITY " " $( pwd) /${dmg_file_path} " -v
334
+ echo " $APPLE_NOTARIZATION_KEY " > " $notarization_key_file "
352
335
" ${xcode_bin_dir_path} /notarytool" submit --wait --key " $notarization_key_file " --key-id " $APPLE_NOTARIZATION_KEY_ID " --issuer " $APPLE_NOTARIZATION_ISSUER_ID " " ${dmg_file_path} "
353
- " ${xcode_bin_dir_path} /stapler" staple " ${dmg_file_path} "
354
336
rm " $notarization_key_file "
337
+ " ${xcode_bin_dir_path} /stapler" staple " ${dmg_file_path} "
355
338
fi
356
339
357
340
if [ " $open_result " = true ]; then
0 commit comments