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

20 lines
433 B
Bash
Raw Permalink Normal View History

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