mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
DRYer
This commit is contained in:
parent
b2c50c0c41
commit
4d2a91ecf2
@ -7,7 +7,8 @@ import plistlib
|
|||||||
from glob import glob
|
from glob import glob
|
||||||
|
|
||||||
from bypy.macos_sign import (
|
from bypy.macos_sign import (
|
||||||
codesign, create_entitlements_file, make_certificate_useable, notarize_app, run
|
codesign, create_entitlements_file, make_certificate_useable, notarize_app,
|
||||||
|
verify_signature
|
||||||
)
|
)
|
||||||
from bypy.utils import current_dir
|
from bypy.utils import current_dir
|
||||||
|
|
||||||
@ -95,10 +96,7 @@ def do_sign_app(appdir):
|
|||||||
|
|
||||||
# Now sign the main app
|
# Now sign the main app
|
||||||
codesign(appdir)
|
codesign(appdir)
|
||||||
# Verify the signature
|
verify_signature(appdir)
|
||||||
run('codesign', '-vvv', '--deep', '--strict', appdir)
|
|
||||||
run('spctl', '--verbose=4', '--assess', '--type', 'execute', appdir)
|
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user