Make the default for update-on-ox fast and useful

This commit is contained in:
Kovid Goyal
2024-07-25 16:28:14 +05:30
parent 7e610eb645
commit 3593e8d78d

View File

@@ -50,9 +50,11 @@ with open(__file__, 'rb') as f:
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:
cmd = 'python ../bypy macos program --dont-strip' cmd = 'python ../bypy macos program --dont-strip'
if 'sign' in sys.argv: if 'dont_sign' not in sys.argv:
cmd += ' --sign-installers'
if 'notarize' in sys.argv:
cmd += ' --sign-installers --notarize' cmd += ' --sign-installers --notarize'
if 'skip_tests' in sys.argv: if 'tests' not in sys.argv:
cmd += ' --skip-tests' cmd += ' --skip-tests'
run(cmd) run(cmd)
f.write(script.encode('utf-8')) f.write(script.encode('utf-8'))