mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-08-16 18:10:32 +03:00
Allow updaing on ox with signed/notarized app easily
This commit is contained in:
parent
2fe1ef4774
commit
022e2eb1db
@ -50,7 +50,10 @@ 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:
|
||||
run('python ../bypy macos program --dont-strip')
|
||||
cmd = 'python ../bypy macos program --dont-strip'
|
||||
if sys.argv[-1] == 'sign':
|
||||
cmd += ' --sign-installers --notarize'
|
||||
run(cmd)
|
||||
f.write(script.encode('utf-8'))
|
||||
f.flush()
|
||||
run(f'scp bypy/b/macos/dist/{dmg} {f.name} {HOST}:/tmp')
|
||||
|
Loading…
Reference in New Issue
Block a user