mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-07-19 09:46:58 +00:00
If there is an error, stop the signing process.
This commit is contained in:
parent
b78186e20c
commit
220fe0cfd4
@ -39,6 +39,7 @@ def sign_dmg(input_dmg, output_dmg, signing_identity):
|
|||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
# Sign the .app bundle
|
# Sign the .app bundle
|
||||||
|
try:
|
||||||
subprocess.run([
|
subprocess.run([
|
||||||
'codesign',
|
'codesign',
|
||||||
'--deep',
|
'--deep',
|
||||||
@ -48,7 +49,13 @@ def sign_dmg(input_dmg, output_dmg, signing_identity):
|
|||||||
'--timestamp',
|
'--timestamp',
|
||||||
'--sign', signing_identity,
|
'--sign', signing_identity,
|
||||||
app_bundle
|
app_bundle
|
||||||
])
|
], check=True)
|
||||||
|
except subprocess.CalledProcessError as e:
|
||||||
|
print(f"Error during codesign: {e}")
|
||||||
|
# Clean up temporary directories
|
||||||
|
shutil.rmtree(temp_dir)
|
||||||
|
shutil.rmtree(mount_point)
|
||||||
|
exit(1)
|
||||||
|
|
||||||
# Create a new DMG containing the signed .app bundle
|
# Create a new DMG containing the signed .app bundle
|
||||||
subprocess.run([
|
subprocess.run([
|
||||||
|
Loading…
Reference in New Issue
Block a user