build.readme.md: mention how to build the native libs when on windows Fix target name: rename target to keepass2android-app *.BAT build-scripts: make script fail when a command fails If a command was failing, the script continued to run and didn't fail. The build errors could be hidden. This will make them apparent build-java.bat: - prefix call to gradlew.bat with 'call' Otherwise, the batch file stops at the first gradlew call. - don't build PluginQR as its output is not used, and the build fails with newer Android SDK/NDK build-xamarin.bat: - use VS2019 path, download NuGet dependencies - Call vcvarsall.bat only if not yet done - build also APK - Tested with VS Community 2019 - When calling it multiple times, the PATH env var contains duplicate values and in the end will be too long, leading to vcvarsall.bat failing, and hence build-xamarin.bat too build-java.sh: - don't unset ANDROID_NDK_HOME & ANDROID_NDK Fixes build issues on github actions - add missing KP2AKdbLibrary - add executable bit to src/java/KP2AKdbLibrary/gradlew - support build with msbuild & force use of xabuild when on linux - don't build PluginQR as its output is not used, and the build fails with newer Android SDK/NDK build-xamarin.sh: - put the config (Debug or Release) in a variable build-apk.sh: - fix project name to keepass2android-app.csproj - support build with msbuild & force use of xabuild when on linux Needed for github actions, and will also support building on macos with msbuild - put the config (Debug or Release) in a variable - Add missing /p:Configuration= /p:Platform=AnyCPU which is needed when building nonet on macos (because nonet uses "Release") remove PluginQR
16 lines
387 B
Batchfile
16 lines
387 B
Batchfile
cd ..\java\JavaFileStorageTest-AS
|
|
call ./gradlew clean assemble || exit /b
|
|
cd ..\..\build-scripts
|
|
|
|
cd ..\java\KP2ASoftkeyboard_AS
|
|
call ./gradlew clean assemble || exit /b
|
|
cd ..\..\build-scripts
|
|
|
|
cd ..\java\Keepass2AndroidPluginSDK2
|
|
call ./gradlew clean assemble || exit /b
|
|
cd ..\..\build-scripts
|
|
|
|
cd ..\java\KP2AKdbLibrary
|
|
call ./gradlew clean assemble || exit /b
|
|
cd ..\..\build-scripts
|