mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-02 09:40:42 +00:00
If there is an error, stop the signing process.
This commit is contained in:
parent
9278265693
commit
8d421c1ff6
@ -39,16 +39,23 @@ def sign_dmg(input_dmg, output_dmg, signing_identity):
|
|||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
# Sign the .app bundle
|
# Sign the .app bundle
|
||||||
subprocess.run([
|
try:
|
||||||
'codesign',
|
subprocess.run([
|
||||||
'--deep',
|
'codesign',
|
||||||
'--force',
|
'--deep',
|
||||||
'--verbose',
|
'--force',
|
||||||
'--options', 'runtime',
|
'--verbose',
|
||||||
'--timestamp',
|
'--options', 'runtime',
|
||||||
'--sign', signing_identity,
|
'--timestamp',
|
||||||
app_bundle
|
'--sign', signing_identity,
|
||||||
])
|
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