mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-05 07:55:23 -04:00
Reverted to using Tor Browser's binaries, universal binaries (MacOS)
This commit is contained in:
parent
e3613c39fe
commit
c2fd95c29e
8 changed files with 865 additions and 884 deletions
|
@ -1,9 +1,18 @@
|
|||
#!/bin/bash
|
||||
OBFS4PROXY_TAG=obfs4proxy-0.0.14
|
||||
|
||||
OS=$(uname -s)
|
||||
|
||||
mkdir -p ./build/obfs4proxy
|
||||
cd ./build/obfs4proxy
|
||||
git clone https://gitlab.com/yawning/obfs4 || echo "already cloned"
|
||||
cd obfs4
|
||||
git checkout $OBFS4PROXY_TAG
|
||||
go build -o ../../../onionshare/resources/tor/obfs4proxy ./obfs4proxy
|
||||
if [ "$OS" == "Darwin" ]; then
|
||||
go build -o ../../../onionshare/resources/tor/obfs4proxy-arm64 ./obfs4proxy
|
||||
GOOS=darwin GOARCH=amd64 go build -o ../../../onionshare/resources/tor/obfs4proxy-amd64 ./obfs4proxy
|
||||
lipo -create -output ../../../onionshare/resources/tor/obfs4proxy ../../../onionshare/resources/tor/obfs4proxy-arm64 ../../../onionshare/resources/tor/obfs4proxy-amd64
|
||||
rm ../../../onionshare/resources/tor/obfs4proxy-arm64 ../../../onionshare/resources/tor/obfs4proxy-amd64
|
||||
else
|
||||
go build -o ../../../onionshare/resources/tor/obfs4proxy ./obfs4proxy
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue