diff --git a/update-on-ox b/update-on-ox index c7816d53a1..a680f79d3a 100755 --- a/update-on-ox +++ b/update-on-ox @@ -51,10 +51,10 @@ 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-calibre')) + with tempfile.NamedTemporaryFile(prefix='install-dmg-', suffix='.py') as f: - run('./osx calibre') + run('./setup.py osx --dont-shutdown') f.write(script.encode('utf-8')) f.flush() - run(f'scp build/osx/dist/{dmg} {f.name} {HOST}:/tmp') + run(f'scp dist/{dmg} {f.name} {HOST}:/tmp') run(f'ssh {HOST} python /tmp/{os.path.basename(f.name)} /tmp/{dmg}')