In Tor Browser for macOS, the file or Contents/MacOS/Tor/tor.real has been renamed to just tor

This commit is contained in:
Micah Lee 2023-09-04 18:31:50 -07:00
parent 9f8ec83990
commit 0d59218bf7
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
2 changed files with 17 additions and 12 deletions

View File

@ -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

View File

@ -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")