1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-26 06:11:19 +00:00
syncthing-android/build-native.sh

28 lines
470 B
Bash
Raw Normal View History

#!/bin/bash
cd "$GOPATH/src/github.com/syncthing/syncthing/"
./build.sh test || exit 1
export GOOS=linux
export ENVIRONMENT=android
export GOARCH=386
./build.sh "" -tags noupgrade
cp syncthing syncthing-x86
export GOARCH=arm
export GOARM=7
./build.sh "" -tags noupgrade
cp syncthing syncthing-armeabi-v7a
export GOARM=5
./build.sh "" -tags noupgrade
cp syncthing syncthing-armeabi
#export GOARCH=mips
#./build.sh "" -tags noupgrade
#cp syncthing syncthing-mips