Reverted to using Tor Browser's binaries, universal binaries (MacOS)

This commit is contained in:
NoisyCoil 2022-12-30 22:23:52 +01:00
parent e3613c39fe
commit c2fd95c29e
8 changed files with 865 additions and 884 deletions

View file

@ -1,9 +1,18 @@
#!/bin/bash
SNOWFLAKE_TAG=v2.3.1
OS=$(uname -s)
mkdir -p ./build/snowflake
cd ./build/snowflake
git clone https://git.torproject.org/pluggable-transports/snowflake.git
git clone https://git.torproject.org/pluggable-transports/snowflake.git || echo "already cloned"
cd snowflake
git checkout $SNOWFLAKE_TAG
go build -o ../../../onionshare/resources/tor/snowflake-client ./client
if [ "$OS" == "Darwin" ]; then
go build -o ../../../onionshare/resources/tor/snowflake-client-arm64 ./client
GOOS=darwin GOARCH=amd64 go build -o ../../../onionshare/resources/tor/snowflake-client-amd64 ./client
lipo -create -output ../../../onionshare/resources/tor/snowflake-client ../../../onionshare/resources/tor/snowflake-client-arm64 ../../../onionshare/resources/tor/snowflake-client-amd64
rm ../../../onionshare/resources/tor/snowflake-client-arm64 ../../../onionshare/resources/tor/snowflake-client-amd64
else
go build -o ../../../onionshare/resources/tor/snowflake-client ./client
fi