From 33fa9a08e4ad9457216580d5cb43cae86a0277e2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 18 Aug 2024 15:30:38 +0530 Subject: [PATCH] Allow turning off stripping in update-on-ox --- update-on-ox | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/update-on-ox b/update-on-ox index 6ee71ffe1..7c44a4997 100755 --- a/update-on-ox +++ b/update-on-ox @@ -49,13 +49,15 @@ with open(__file__, 'rb') as f: script = f.read().decode('utf-8') script = script[:script.find('# EOF_REMOTE')].replace('if False:', 'if True:', 1) with tempfile.NamedTemporaryFile(prefix='install-dmg-', suffix='.py') as f: - cmd = 'python ../bypy macos program --dont-strip' + cmd = 'python ../bypy macos program' if 'dont_sign' not in sys.argv: cmd += ' --sign-installers' - if 'notarize' in sys.argv: - cmd += ' --sign-installers --notarize' + if 'strip' not in sys.argv: + cmd += ' --dont-strip' if 'tests' not in sys.argv: cmd += ' --skip-tests' + if 'notarize' in sys.argv: + cmd += ' --sign-installers --notarize' run(cmd) f.write(script.encode('utf-8')) f.flush()