mirror of
				https://github.com/onionshare/onionshare.git
				synced 2025-10-31 06:19:16 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			988 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			988 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/bin/bash
 | |
| MEEK_TAG=v0.37.0
 | |
| 
 | |
| OS=$(uname -s)
 | |
| 
 | |
| mkdir -p ./build/meek
 | |
| cd ./build/meek
 | |
| git clone https://git.torproject.org/pluggable-transports/meek.git || echo "already cloned"
 | |
| cd meek
 | |
| git checkout $MEEK_TAG
 | |
| 
 | |
| if [ "$OS" == "Darwin" ]; then
 | |
|     if [[ $(uname -m) == 'arm64' ]]; then
 | |
|         go build -o ../../../onionshare/resources/tor/meek-client-arm64 ./meek-client
 | |
|         GOOS=darwin GOARCH=amd64 go build -o ../../../onionshare/resources/tor/meek-client-amd64 ./meek-client
 | |
|         lipo -create -output ../../../onionshare/resources/tor/meek-client ../../../onionshare/resources/tor/meek-client-arm64 ../../../onionshare/resources/tor/meek-client-amd64
 | |
|         rm ../../../onionshare/resources/tor/meek-client-arm64 ../../../onionshare/resources/tor/meek-client-amd64
 | |
|     elif [[ $(uname -m) == 'x86_64' ]]; then
 | |
|         go build -o ../../../onionshare/resources/tor/meek-client ./meek-client
 | |
|     fi
 | |
| else
 | |
|     go build -o ../../../onionshare/resources/tor/meek-client ./meek-client
 | |
| fi
 | 
