mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-22 12:21:15 +00:00
b03c7d4ded
- Use ndk 21 due to Go bug: https://github.com/golang/go/issues/42655 - Use pre-built clang binaries instead of building ourselves - Build syncthing when creating container to prepopulate modules
10 lines
312 B
Bash
Executable file
10 lines
312 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
[ -z "$SYNCTHING_ANDROID_PREBUILT" ] && echo "Prebuild disabled" && exit 0
|
|
|
|
echo "Prepopulating gradle and go build/pkg cache"
|
|
git clone --recurse-submodules https://github.com/syncthing/syncthing-android
|
|
cd syncthing-android
|
|
./gradlew --no-daemon lint buildNative
|
|
cd ..
|
|
rm -rf syncthing-android
|