Skip to content

Commit

Permalink
Update setupApp.py
Browse files Browse the repository at this point in the history
  • Loading branch information
typemytype committed Jun 2, 2020
1 parent 0ab3d48 commit 0b5e9b2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions setupApp.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,10 +393,14 @@ def getValueFromSysArgv(key, default=None, isBooleanFlag=False):
time.sleep(30)

if "notarization-info" in data:
print("get notarization log")
logURL = data["notarization-info"].get("LogFileURL")
print(f"get notarization log from: {logURL}")
notarizeLogPath = os.path.join(distLocation, 'notarize_log.txt')
if logURL:
os.system(f"curl -s {logURL} > {os.path.join(distLocation, 'notarize_log.txt')}")
os.system(f"curl -s {logURL} > {notarizeLogPath}")
else:
# create the file
open(notarizeLogPath, 'w').close()

print("done getting notarization info")

Expand Down

0 comments on commit 0b5e9b2

Please sign in to comment.