Don't copy obfs4proxy and snowflake binaries from Tor Browser

This commit is contained in:
Micah Lee 2022-10-02 11:27:06 -07:00
parent 8d345d3040
commit 23ed2572ab
No known key found for this signature in database
GPG key ID: 403C2657CD994F73

View file

@ -196,20 +196,6 @@ def get_tor_macos():
os.path.join(dmg_tor_path, "MacOS", "Tor", "libevent-2.1.7.dylib"), os.path.join(dmg_tor_path, "MacOS", "Tor", "libevent-2.1.7.dylib"),
os.path.join(dist_path, "libevent-2.1.7.dylib"), os.path.join(dist_path, "libevent-2.1.7.dylib"),
) )
# obfs4proxy binary
shutil.copyfile(
os.path.join(dmg_tor_path, "MacOS", "Tor", "PluggableTransports", "obfs4proxy"),
os.path.join(dist_path, "obfs4proxy"),
)
os.chmod(os.path.join(dist_path, "obfs4proxy"), 0o755)
# snowflake-client binary
shutil.copyfile(
os.path.join(
dmg_tor_path, "MacOS", "Tor", "PluggableTransports", "snowflake-client"
),
os.path.join(dist_path, "snowflake-client"),
)
os.chmod(os.path.join(dist_path, "snowflake-client"), 0o755)
# Eject dmg # Eject dmg
subprocess.call(["diskutil", "eject", "/Volumes/Tor Browser"]) subprocess.call(["diskutil", "eject", "/Volumes/Tor Browser"])