mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-22 04:11:14 +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 |
||
---|---|---|
.. | ||
Dockerfile | ||
prebuild.sh | ||
README.md |
How to use this
- Build the docker image:
docker build -t syncthing-android-builder:latest .
- Checkout syncthing-android somewhere (for the sake of discussion let's say /tmp/syncthing-android)
- Inside /tmp/syncthing-android, do
git submodule init; git submodule update
- Run
docker run --rm -v /tmp/syncthing-android:/mnt syncthing-android-builder ./gradlew buildNative assembleDebug
- Retrieve APKs from /tmp/syncthing-android/app/build/outputs