NOTARIZE only has one O

This commit is contained in:
Jason Rhinelander 2020-04-20 21:51:24 -03:00
parent 9f208d2b6c
commit 6da26bfa43
1 changed files with 2 additions and 4 deletions

View File

@ -6,7 +6,7 @@ import subprocess
import time
pkg = "lokinet-@PROJECT_VERSION@-Darwin.pkg"
userpass = ('--username', "@MACOS_NOTORIZE_USER@", '--password', "@MACOS_NOTORIZE_PASS@")
userpass = ('--username', "@MACOS_NOTARIZE_USER@", '--password', "@MACOS_NOTARIZE_PASS@")
print("Submitting {} for notarization; this may take a minute...".format(pkg))
started = time.time()
@ -15,13 +15,11 @@ result = subprocess.run([
'--notarize-app',
'--primary-bundle-id', 'org.lokinet.lokinet.pkg.@PROJECT_VERSION@',
*userpass,
'--asc-provider', "@MACOS_NOTORIZE_ASC@",
'--asc-provider', "@MACOS_NOTARIZE_ASC@",
'--file', pkg,
'--output-format', 'xml'
], stdout=subprocess.PIPE)
result.check_returncode()
data = plistlib.loads(result.stdout)
if 'success-message' not in data or 'notarization-upload' not in data or 'RequestUUID' not in data['notarization-upload']:
print("Something failed, leaving you with this nice XML to figure out:\n{}".format(data))