mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Allow turning off stripping in update-on-ox
This commit is contained in:
parent
80ec6ae4b6
commit
33fa9a08e4
1 changed files with 5 additions and 3 deletions
|
|
@ -49,13 +49,15 @@ with open(__file__, 'rb') as f:
|
|||
script = f.read().decode('utf-8')
|
||||
script = script[:script.find('# EOF_REMOTE')].replace('if False:', 'if True:', 1)
|
||||
with tempfile.NamedTemporaryFile(prefix='install-dmg-', suffix='.py') as f:
|
||||
cmd = 'python ../bypy macos program --dont-strip'
|
||||
cmd = 'python ../bypy macos program'
|
||||
if 'dont_sign' not in sys.argv:
|
||||
cmd += ' --sign-installers'
|
||||
if 'notarize' in sys.argv:
|
||||
cmd += ' --sign-installers --notarize'
|
||||
if 'strip' not in sys.argv:
|
||||
cmd += ' --dont-strip'
|
||||
if 'tests' not in sys.argv:
|
||||
cmd += ' --skip-tests'
|
||||
if 'notarize' in sys.argv:
|
||||
cmd += ' --sign-installers --notarize'
|
||||
run(cmd)
|
||||
f.write(script.encode('utf-8'))
|
||||
f.flush()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue