Use bypy in update-on-ubuntu

This commit is contained in:
Kovid Goyal 2020-06-06 09:23:36 +05:30
parent ac6d1ce174
commit 8f85c0d167
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -47,10 +47,9 @@ def run(what):
with open(__file__, 'rb') as f:
script = f.read().decode('utf-8')
script = script[:script.find('# EOF_REMOTE')].replace('if False:', 'if True:', 1)
os.chdir(os.path.expanduser('~/work/build-kitty'))
with tempfile.NamedTemporaryFile(prefix='install-tarball-', suffix='.py') as f:
run('./linux 64 kitty --debug-build --compression-level=1')
run('python ../bypy linux program --dont-strip --compression-level=1')
f.write(script.encode('utf-8'))
f.flush()
run(f'scp build/linux/64/sw/dist/{tarball} {f.name} {HOST}:/tmp')
run(f'scp bypy/b/linux/64/sw/dist/{tarball} {f.name} {HOST}:/tmp')
run(f'ssh {HOST} python /tmp/{os.path.basename(f.name)} /tmp/{tarball}')