Notarize on macOS outside the dmg sparse image due to size constraints
parent
f6276fa433
commit
ee69eb747a
|
|
@ -1817,16 +1817,16 @@ class Darwin_x86_64_Manifest(ViewerManifest):
|
||||||
print("Maximum codesign attempts exceeded; giving up", file=sys.stderr)
|
print("Maximum codesign attempts exceeded; giving up", file=sys.stderr)
|
||||||
raise sign_failed
|
raise sign_failed
|
||||||
|
|
||||||
# Copy signed app back into mounted sparse image
|
# Signing succeeded, now delete the original app in the mounted sparse image and notarize if needed
|
||||||
print("Copying signed app back into mounted sparse image")
|
|
||||||
shutil.rmtree(app_in_dmg)
|
shutil.rmtree(app_in_dmg)
|
||||||
subprocess.run(['ditto', tmp_app_path, app_in_dmg], check=True)
|
if not ad_hoc_sign:
|
||||||
|
# <FS:ND> This fails sometimes and works other times. Even when notarization (down below) is a success
|
||||||
|
# Remove it for now and investigate after we did notarize a few times
|
||||||
|
#self.run_command(['spctl', '-a', '-texec', '-vvvv', app_in_dmg])
|
||||||
|
self.run_command([self.src_path_of("installers/darwin/apple-notarize.sh"), tmp_app_path])
|
||||||
|
|
||||||
if not ad_hoc_sign:
|
print("Copying signed app back into mounted sparse image")
|
||||||
# <FS:ND> This fails sometimes and works other times. Even when notarization (down below) is a success
|
subprocess.run(['ditto', tmp_app_path, app_in_dmg], check=True)
|
||||||
# Remove it for now and investigate after we did notarize a few times
|
|
||||||
#self.run_command(['spctl', '-a', '-texec', '-vvvv', app_in_dmg])
|
|
||||||
self.run_command([self.src_path_of("installers/darwin/apple-notarize.sh"), app_in_dmg])
|
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
# Unmount the image even if exceptions from any of the above
|
# Unmount the image even if exceptions from any of the above
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue