1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-25 22:01:16 +00:00

Merge pull request 97 from Zillode/darwin.

This commit is contained in:
Felix Ableitner 2014-08-23 14:48:58 +02:00
commit c2e1b8276d

View file

@ -30,7 +30,7 @@ if [ -z $GOROOT ]; then
popd popd
fi fi
# Add GO to the environment # Add GO to the environment
export GOROOT="$(readlink -e $tmpgo)" export GOROOT="$(pwd)/$tmpgo"
fi fi
# Add GO compiler to PATH # Add GO compiler to PATH
@ -58,17 +58,12 @@ export GOPATH="$(pwd)"
# Install godep # Install godep
$GOROOT/bin/go get github.com/tools/godep $GOROOT/bin/go get github.com/tools/godep
export PATH="$(readlink -e bin)":$PATH export PATH="$(pwd)/bin":$PATH
# Install dependencies # Setup syncthing and clean
cd src/github.com/syncthing/syncthing
./build.sh setup || true
# Build test
#./build.sh test || exit 1
export GOOS=linux
export ENVIRONMENT=android export ENVIRONMENT=android
cd src/github.com/syncthing/syncthing
$GOROOT/bin/go run build.go clean
# X86 # X86
$GOROOT/bin/go run build.go -goos linux -goarch 386 -no-upgrade build $GOROOT/bin/go run build.go -goos linux -goarch 386 -no-upgrade build