64-bit Tor Browser binaries have different filenames than 32-bit

This commit is contained in:
Micah Lee 2022-06-19 15:57:10 -04:00
parent 6a5de62ba5
commit e60c56d457
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
2 changed files with 28 additions and 15 deletions

View file

@ -357,7 +357,7 @@ jobs:
if [[ -f "~/project/desktop/onionshare/resources/tor/obfs4proxy" ]]; then
echo "obfs4proxy already built"
else
cd ~/projects/desktop
cd ~/project/desktop
./scripts/build-pt-obfs4proxy.sh
fi
- save_cache:
@ -373,7 +373,7 @@ jobs:
if [[ -f "~/project/desktop/onionshare/resources/tor/snowflake-client" ]]; then
echo "snowflake already built"
else
cd ~/projects/desktop
cd ~/project/desktop
./scripts/build-pt-snowflake.sh
fi
- save_cache:
@ -389,7 +389,7 @@ jobs:
if [[ -f "~/project/desktop/onionshare/resources/tor/meek-client" ]]; then
echo "meek already built"
else
cd ~/projects/desktop
cd ~/project/desktop
./scripts/build-pt-meek.sh
fi
- save_cache:

View file

@ -45,10 +45,34 @@ def get_tor_windows(platform):
win_url = win32_url
win_filename = win32_filename
expected_win_sha256 = expected_win32_sha256
bin_filenames = [
"libcrypto-1_1.dll",
"libevent-2-1-7.dll",
"libevent_core-2-1-7.dll",
"libevent_extra-2-1-7.dll",
"libgcc_s_dw2-1.dll",
"libssl-1_1.dll",
"libssp-0.dll",
"libwinpthread-1.dll",
"tor.exe",
"zlib1.dll",
]
elif platform == "win64":
win_url = win64_url
win_filename = win64_filename
expected_win_sha256 = expected_win64_sha256
bin_filenames = [
"libcrypto-1_1-x64.dll",
"libevent-2-1-7.dll",
"libevent_core-2-1-7.dll",
"libevent_extra-2-1-7.dll",
"libgcc_s_dw2-1.dll",
"libssl-1_1-x64.dll",
"libssp-0.dll",
"libwinpthread-1.dll",
"tor.exe",
"zlib1.dll",
]
else:
click.echo("invalid platform")
return
@ -105,18 +129,7 @@ def get_tor_windows(platform):
if os.path.exists(dist_path):
shutil.rmtree(dist_path)
os.makedirs(dist_path)
for filename in [
"libcrypto-1_1.dll",
"libevent-2-1-7.dll",
"libevent_core-2-1-7.dll",
"libevent_extra-2-1-7.dll",
"libgcc_s_dw2-1.dll",
"libssl-1_1.dll",
"libssp-0.dll",
"libwinpthread-1.dll",
"tor.exe",
"zlib1.dll",
]:
for filename in bin_filenames:
shutil.copyfile(
os.path.join(working_path, "Tor", filename),
os.path.join(dist_path, filename),