From 03e0bf4c0ee480e3e6fed94af3f7bc4583ab0b0a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 6 Jun 2020 09:11:50 +0530 Subject: [PATCH] Migrate update-on-ox to use bypy --- update-on-ox | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/update-on-ox b/update-on-ox index aa5d4fe28..8d40d5e10 100755 --- a/update-on-ox +++ b/update-on-ox @@ -49,10 +49,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-dmg-', suffix='.py') as f: - run('./osx kitty --debug-build') + run('python ../bypy macos program --dont-strip') f.write(script.encode('utf-8')) f.flush() - run(f'scp build/osx/dist/{dmg} {f.name} {HOST}:/tmp') + run(f'scp bypy/b/macos/dist/{dmg} {f.name} {HOST}:/tmp') run(f'ssh {HOST} python /tmp/{os.path.basename(f.name)} /tmp/{dmg}')