Skip to content

Commit

Permalink
PKG: onnly save the notarization log for the contents, not the dmg
Browse files Browse the repository at this point in the history
  • Loading branch information
peircej committed Jul 2, 2024
1 parent f2c61de commit e9e76eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions building/apple_sign.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def zipFile(self):
self._zipFile = zipFilename
return zipFilename

def awaitNotarized(self):
def awaitNotarized(self, logFile='_notarization.json'):
print("Waiting for notarization to complete"); sys.stdout.flush()
# can use 'xcrun notarytool info' to check status or 'xcrun notarytool wait'
exitcode, output = subprocess.getstatusoutput(f'xcrun notarytool wait {self._appNotarizeUUID} '
Expand All @@ -277,7 +277,7 @@ def awaitNotarized(self):
f'--apple-id "{self._apple_id}" '
f'--team-id {self._team_id} '
f'--password {self._pword} '
f'_notarization.json')
f'{logFile}')
print(output)
if exitcode != 0:
print("`xcrun notarytool wait` returned exit code {exitcode}. Exiting immediately.")
Expand Down Expand Up @@ -474,7 +474,7 @@ def main():
return 0
# notarize and staple
print(f'Signer.awaitNotarized()'); sys.stdout.flush()
signer.awaitNotarized()
signer.awaitNotarized(logFile="") # don't need the log file for the dmg
print(f'Signer.staple(dmgFile)'); sys.stdout.flush()
signer.staple(dmgFile)

Expand Down

0 comments on commit e9e76eb

Please sign in to comment.