diff options
author | Marco D'Aleo <m.daleo404@gmail.com> | 2023-10-21 09:36:16 +0100 |
---|---|---|
committer | Marco D'Aleo <m.daleo404@gmail.com> | 2023-10-21 09:36:16 +0100 |
commit | a0ff9eb966e3f29242b4677a9cd434b13bb723d9 (patch) | |
tree | 7cd3b5630db66c339cf3c1fd25739da2012b1c77 | |
parent | 9f247eddfd4d1aa3d804663cf548005880c61875 (diff) | |
download | onionshare-a0ff9eb966e3f29242b4677a9cd434b13bb723d9.tar.gz onionshare-a0ff9eb966e3f29242b4677a9cd434b13bb723d9.zip |
fix linux platform name to reflect the current one, fix libcrypto/libssl old file names
-rw-r--r-- | desktop/scripts/get-tor.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/desktop/scripts/get-tor.py b/desktop/scripts/get-tor.py index fab70b7e..48236124 100644 --- a/desktop/scripts/get-tor.py +++ b/desktop/scripts/get-tor.py @@ -233,16 +233,16 @@ def get_tor_linux64(gpg, torkey, linux64_url, linux64_filename, expected_linux64 ) os.chmod(os.path.join(dist_path, "tor"), 0o755) shutil.copyfile( - os.path.join(tarball_tor_path, "Tor", "libcrypto.so.1.1"), - os.path.join(dist_path, "libcrypto.so.1.1"), + os.path.join(tarball_tor_path, "Tor", "libcrypto.so.3"), + os.path.join(dist_path, "libcrypto.so.3"), ) shutil.copyfile( os.path.join(tarball_tor_path, "Tor", "libevent-2.1.so.7"), os.path.join(dist_path, "libevent-2.1.so.7"), ) shutil.copyfile( - os.path.join(tarball_tor_path, "Tor", "libssl.so.1.1"), - os.path.join(dist_path, "libssl.so.1.1"), + os.path.join(tarball_tor_path, "Tor", "libssl.so.3"), + os.path.join(dist_path, "libssl.so.3"), ) shutil.copyfile( os.path.join(tarball_tor_path, "Tor", "libstdc++", "libstdc++.so.6"), @@ -310,7 +310,7 @@ def main(platform): """ Download Tor Browser and extract tor binaries """ - valid_platforms = ["win64", "macos", "linux64"] + valid_platforms = ["win64", "macos", "linux-x86_64"] if platform not in valid_platforms: click.echo(f"platform must be one of: {valid_platforms}") return @@ -335,7 +335,7 @@ def main(platform): get_tor_macos( gpg, torkey, platform_url, platform_filename, expected_platform_sig ) - elif platform == "linux64": + elif platform == "linux-x86_64": get_tor_linux64( gpg, torkey, platform_url, platform_filename, expected_platform_sig ) |