aboutsummaryrefslogtreecommitdiff
path: root/desktop/scripts/get-tor-osx.py
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/scripts/get-tor-osx.py')
-rwxr-xr-xdesktop/scripts/get-tor-osx.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/desktop/scripts/get-tor-osx.py b/desktop/scripts/get-tor-osx.py
index 80d7aee8..2f2d2959 100755
--- a/desktop/scripts/get-tor-osx.py
+++ b/desktop/scripts/get-tor-osx.py
@@ -32,6 +32,8 @@ import shutil
import subprocess
import requests
+from bridges import UpdateTorBridges
+
def main():
dmg_url = "https://dist.torproject.org/torbrowser/11.0a10/TorBrowser-11.0a10-osx64_en-US.dmg"
@@ -49,7 +51,7 @@ def main():
"/Volumes", "Tor Browser", "Tor Browser.app", "Contents"
)
dmg_path = os.path.join(working_path, dmg_filename)
- dist_path = os.path.join(root_path, "src", "onionshare", "resources", "tor")
+ dist_path = os.path.join(root_path, "onionshare", "resources", "tor")
if not os.path.exists(dist_path):
os.makedirs(dist_path, exist_ok=True)
@@ -113,6 +115,9 @@ def main():
# Eject dmg
subprocess.call(["diskutil", "eject", "/Volumes/Tor Browser"])
+ # Fetch the built-in bridges
+ UpdateTorBridges(root_path)
+
if __name__ == "__main__":
main()