diff options
author | Micah Lee <micah@micahflee.com> | 2022-03-30 15:52:31 -0700 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2022-03-30 15:52:31 -0700 |
commit | e77cd6939e02f602bc60a3b5d4e62bc6f6d073d7 (patch) | |
tree | 86c1484fcbc746522f1d0c6bc58fc08be82500ca /desktop/package | |
parent | 1d9ce020e5186e942ab2e4a3ebc807f866ea7a43 (diff) | |
download | onionshare-e77cd6939e02f602bc60a3b5d4e62bc6f6d073d7.tar.gz onionshare-e77cd6939e02f602bc60a3b5d4e62bc6f6d073d7.zip |
Try fixing installing 32-bit go, and try fixing 32-bit paths in scripts
Diffstat (limited to 'desktop/package')
-rw-r--r-- | desktop/package/build-windows.py | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/desktop/package/build-windows.py b/desktop/package/build-windows.py index d9e78f95..1cce529f 100644 --- a/desktop/package/build-windows.py +++ b/desktop/package/build-windows.py @@ -162,6 +162,18 @@ def wix_build_components_xml(root, data): def main(): + # Figure out the architecture and python path + if "64 bit" in sys.version: + python_arch = "win-amd64" + else: + python_arch = "win32" + + if os.getlogin() == "circleci" and python_arch == "win32": + python_path = "C:\\Python-32bit\\python" + else: + python_path = shutil.which("python") + + # Arguments parser = argparse.ArgumentParser( formatter_class=lambda prog: argparse.HelpFormatter(prog, max_help_position=48) ) @@ -185,17 +197,13 @@ def main(): print("> Building binaries") run( [ - "python", + python_path, "setup-freeze.py", "build", ], desktop_dir, ) - if "64 bit" in sys.version: - python_arch = "win-amd64" - else: - python_arch = "win32" build_path = os.path.join(desktop_dir, "build", f"exe.{python_arch}-3.9") # before_size = get_size(build_path) |