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/scripts | |
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/scripts')
-rwxr-xr-x | desktop/scripts/build-meek-client.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/desktop/scripts/build-meek-client.py b/desktop/scripts/build-meek-client.py index 3d81d62f..a33e314b 100755 --- a/desktop/scripts/build-meek-client.py +++ b/desktop/scripts/build-meek-client.py @@ -26,13 +26,25 @@ and hard-code the sha256 hash. """ import shutil import os +import sys import subprocess import inspect import platform def main(): - if shutil.which("go") is None: + # 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": + go_path = "C:\\Program Files (x86)\\Go\\bin\\go" + else: + go_path = shutil.which("go") + + if go_path is None: print("Install go: https://golang.org/doc/install") return |