From 0d59218bf756db8852caebc084bc0a1da377eec0 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Mon, 4 Sep 2023 18:31:50 -0700 Subject: In Tor Browser for macOS, the file or Contents/MacOS/Tor/tor.real has been renamed to just tor --- RELEASE.md | 7 +------ desktop/scripts/get-tor.py | 22 ++++++++++++++++------ 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/RELEASE.md b/RELEASE.md index c609ab67..41b1572f 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -21,8 +21,6 @@ Unless you're a core OnionShare developer making a release, you'll probably neve ### Update dependencies -#### Python dependencies - Check `cli/pyproject.toml` to see if any hard-coded versions should be updated. Then, update the dependencies like this: ```sh @@ -49,10 +47,7 @@ poetry update cd .. ``` -#### Tor and pluggable transports - -- [ ] Update the version of `meek`, `obfs4proxy`, and `snowflake` in the `desktop/scripts/build-pt-*` scripts, both the bash and PowerShell scripts. - +Update the versions of `meek`, `obfs4proxy`, and `snowflake` in the `desktop/scripts/build-pt-*` scripts, both the bash and PowerShell scripts. ### Update the documentation diff --git a/desktop/scripts/get-tor.py b/desktop/scripts/get-tor.py index 12bf0b50..17ffec9d 100644 --- a/desktop/scripts/get-tor.py +++ b/desktop/scripts/get-tor.py @@ -159,7 +159,7 @@ def get_tor_macos(gpg, torkey, macos_url, macos_filename, expected_macos_sig): os.path.join(dist_path, "geoip6"), ) shutil.copyfile( - os.path.join(dmg_tor_path, "MacOS", "Tor", "tor.real"), + os.path.join(dmg_tor_path, "MacOS", "Tor", "tor"), os.path.join(dist_path, "tor"), ) os.chmod(os.path.join(dist_path, "tor"), 0o755) @@ -322,17 +322,27 @@ def main(platform): ) = get_latest_tor_version_urls(platform) tmpdir = tempfile.TemporaryDirectory() gpg = gnupg.GPG(gnupghome=tmpdir.name) - torkey = gpg.import_keys_file(os.path.join(root_path, "scripts", "kounek7zrdx745qydx6p59t9mqjpuhdf")) + torkey = gpg.import_keys_file( + os.path.join(root_path, "scripts", "kounek7zrdx745qydx6p59t9mqjpuhdf") + ) print(f"Imported Tor GPG key: {torkey.fingerprints}") if platform == "win32": - get_tor_windows(gpg, torkey, platform_url, platform_filename, expected_platform_sig) + get_tor_windows( + gpg, torkey, platform_url, platform_filename, expected_platform_sig + ) elif platform == "win64": - get_tor_windows(gpg, torkey, platform_url, platform_filename, expected_platform_sig) + get_tor_windows( + gpg, torkey, platform_url, platform_filename, expected_platform_sig + ) elif platform == "macos": - get_tor_macos(gpg, torkey, platform_url, platform_filename, expected_platform_sig) + get_tor_macos( + gpg, torkey, platform_url, platform_filename, expected_platform_sig + ) elif platform == "linux64": - get_tor_linux64(gpg, torkey, platform_url, platform_filename, expected_platform_sig) + get_tor_linux64( + gpg, torkey, platform_url, platform_filename, expected_platform_sig + ) else: click.echo("invalid platform") -- cgit v1.2.3-54-g00ecf