diff options
author | Micah Lee <micah@micahflee.com> | 2020-11-04 15:57:14 -0800 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2020-11-04 15:57:14 -0800 |
commit | b2f30e90b34ef3a44390bf905d9f47ee195f9954 (patch) | |
tree | 6969f44e5c33b59dbaa014a595b08317feda3139 /desktop/scripts/get-tor-windows.py | |
parent | d9153758cdfb44b7ff37068d39c33161aea0e227 (diff) | |
download | onionshare-b2f30e90b34ef3a44390bf905d9f47ee195f9954.tar.gz onionshare-b2f30e90b34ef3a44390bf905d9f47ee195f9954.zip |
Make OnionShare briefcase work in macOS
Diffstat (limited to 'desktop/scripts/get-tor-windows.py')
-rw-r--r-- | desktop/scripts/get-tor-windows.py | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/desktop/scripts/get-tor-windows.py b/desktop/scripts/get-tor-windows.py index 33de056b..16841c60 100644 --- a/desktop/scripts/get-tor-windows.py +++ b/desktop/scripts/get-tor-windows.py @@ -34,10 +34,10 @@ import requests def main(): - exe_url = "https://archive.torproject.org/tor-package-archive/torbrowser/10.0/torbrowser-install-10.0_en-US.exe" - exe_filename = "torbrowser-install-10.0_en-US.exe" + exe_url = "https://archive.torproject.org/tor-package-archive/torbrowser/10.0.2/torbrowser-install-10.0.2_en-US.exe" + exe_filename = "torbrowser-install-10.0.2_en-US.exe" expected_exe_sha256 = ( - "3d1a337da0e6eae32071e6de21963ba628a1a0939477bf823aa7df9051215410" + "c685c550fc420c39cbe40e453f2201789af5f64e7b024c9339c2a3bd01e61c2d" ) # Build paths root_path = os.path.dirname( @@ -69,22 +69,26 @@ def main(): sys.exit(-1) # Extract the bits we need from the exe - subprocess.Popen([ - "7z", - "e", - "-y", - exe_path, - "Browser\TorBrowser\Tor", - "-o%s" % os.path.join(working_path, "Tor"), - ]).wait() - subprocess.Popen([ - "7z", - "e", - "-y", - exe_path, - "Browser\TorBrowser\Data\Tor\geoip*", - "-o%s" % os.path.join(working_path, "Data"), - ]).wait() + subprocess.Popen( + [ + "7z", + "e", + "-y", + exe_path, + "Browser\TorBrowser\Tor", + "-o%s" % os.path.join(working_path, "Tor"), + ] + ).wait() + subprocess.Popen( + [ + "7z", + "e", + "-y", + exe_path, + "Browser\TorBrowser\Data\Tor\geoip*", + "-o%s" % os.path.join(working_path, "Data"), + ] + ).wait() # Copy into the onionshare resources if os.path.exists(dist_path): |