mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-11 14:45:31 +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 = f.read().decode('utf-8')
|
||||||
script = script[:script.find('# EOF_REMOTE')].replace('if False:', 'if True:', 1)
|
script = script[:script.find('# EOF_REMOTE')].replace('if False:', 'if True:', 1)
|
||||||
with tempfile.NamedTemporaryFile(prefix='install-dmg-', suffix='.py') as f:
|
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.write(script.encode('utf-8'))
|
||||||
f.flush()
|
f.flush()
|
||||||
run(f'scp bypy/b/macos/dist/{dmg} {f.name} {HOST}:/tmp')
|
run(f'scp bypy/b/macos/dist/{dmg} {f.name} {HOST}:/tmp')
|
||||||
|
Loading…
Reference in New Issue
Block a user