1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-22 04:11:14 +00:00
syncthing-android/docker/prebuild.sh
Simon Frei d753c2659f
Prebuild in docker image based on local copy of repo
Instead of checking out the default branch. Otherwise it's impossible to
test local changes.
2023-06-18 16:45:01 +02:00

13 lines
277 B
Bash
Executable file

#!/bin/bash -e
if [ -z "$SYNCTHING_ANDROID_PREBUILT" ]; then
echo "Prebuild disabled"
rm -rf syncthing-android
exit 0
fi
echo "Prepopulating gradle and go build/pkg cache"
cd syncthing-android
./gradlew --no-daemon lint buildNative
cd ..
rm -rf syncthing-android