build: Update windows build instructions (fixes #219)

This commit is contained in:
Audrius Butkevicius 2016-12-01 23:30:56 +00:00
parent 6f01894c67
commit 6048b95591
1 changed files with 9 additions and 5 deletions

View File

@ -39,9 +39,13 @@ To check for updated gradle dependencies, run `gradle dependencyUpdates`. Additi
### Building on Windows ### Building on Windows
To build the Syncthing app on Windows we need to include the native Syncthing binaries: To build the Syncthing app on Windows we need to have cygwin installed.
- Download the `syncthing-linux-386` and `syncthing-linux-arm` archives from [Syncthing releases](https://github.com/syncthing/syncthing/releases) and extract them. In each there is a `syncthing` executable. Rename and place both of these to `libs/x86/libsyncthing.so` and `libs/armeabi/libsyncthing.so` respectively.
Use `./gradlew assembleDebug` in the project directory to compile the APK. From a cygwin shell in the project directory, build Go using `./make-go.bash [arch]`
After Go is built, compile syncthing using `./make-syncthing.bash [arch]`
Lastly, use `./gradlew assembleDebug` in the project directory to compile the APK,
or use Android Studio to build/deploy the APK.
# License # License