remove src/build-scripts/build-xamarin*.bat
Prefered method to build on command line is with make since it is provided in NDK anyway
This commit is contained in:
@@ -145,17 +145,7 @@ These are the basic steps to build Keepass2Android. You can also build Keepass2A
|
||||
|
||||
### Command Line
|
||||
|
||||
#### Windows
|
||||
```
|
||||
cd src/build-scripts
|
||||
build-xamarin.bat
|
||||
```
|
||||
|
||||
`build-xamarin.bat` will first make sure that you have all files at their place. (There is a "secret" file for Dropbox SDK keys which is not in the repo, this is replaced with a dummy file).
|
||||
|
||||
Use `build-xamarin_nonet.bat` to build the 'nonet' flavor.
|
||||
|
||||
#### Macos & Linux
|
||||
#### Windows, Macos & Linux
|
||||
to build the APK, simply run:
|
||||
|
||||
```
|
||||
@@ -206,16 +196,7 @@ Proceed this way:
|
||||
|
||||
#### Command line
|
||||
|
||||
##### Windows
|
||||
|
||||
On Windows, you can use the `src/build-scripts/build-xamarin_nonet.bat` script to build 'NoNet'.
|
||||
|
||||
```
|
||||
cd src/build-scripts
|
||||
build-xamarin_nonet.bat
|
||||
```
|
||||
|
||||
##### Macos & Linux
|
||||
##### Windows, Macos & Linux
|
||||
|
||||
To force building 'net' with `make`, run:
|
||||
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
REM Build Keepass2Android
|
||||
|
||||
@echo OFF
|
||||
|
||||
set Flavor=
|
||||
set Configuration=Debug
|
||||
|
||||
if NOT "%Flavor%" == "" (
|
||||
set MSBUILD_PARAMS=%MSBUILD_PARAMS% -p:Flavor=%Flavor%
|
||||
)
|
||||
if NOT "%Configuration%" == "" (
|
||||
set MSBUILD_PARAMS=%MSBUILD_PARAMS% -p:Configuration=%Configuration%
|
||||
)
|
||||
|
||||
cd ..\Kp2aBusinessLogic\Io
|
||||
if exist "DropboxFileStorageKeys.cs" (
|
||||
echo DropboxFileStorageKeys.cs found.
|
||||
) ELSE (
|
||||
echo Put dummy DropboxFileStorageKeys.cs
|
||||
xcopy DropboxFileStorageKeysDummy.cs DropboxFileStorageKeys.cs
|
||||
)
|
||||
cd ..\..
|
||||
|
||||
REM Get Visual Studio install path & call vcvarsall.bat
|
||||
FOR /F "tokens=* USEBACKQ" %%F IN (`"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -property installationPath`) DO (
|
||||
SET VS_INSTALL_PATH=%%F
|
||||
)
|
||||
echo Visual Studio Install PATH: %VS_INSTALL_PATH%
|
||||
|
||||
IF "%VCToolsVersion%" == "" (
|
||||
echo Setting up Visual Studio Environment
|
||||
call "%VS_INSTALL_PATH%\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64 || exit /b
|
||||
)
|
||||
|
||||
REM Download NuGet dependencies
|
||||
echo Download NuGet dependencies
|
||||
msbuild KeePass.sln -t:restore -p:RestorePackagesConfig=true || exit /b
|
||||
|
||||
REM Build
|
||||
echo Start building Keepass2Android
|
||||
@echo ON
|
||||
msbuild KeePass.sln /target:keepass2android-app /p:BuildProjectReferences=true %MSBUILD_PARAMS% /p:Platform="Any CPU" /p:AndroidBuildApplicationPackage=True -m || exit /b
|
||||
|
||||
@echo OFF
|
||||
cd build-scripts
|
||||
echo APK can be found in src\keepass2android\bin\%Configuration%
|
||||
@@ -1,47 +0,0 @@
|
||||
REM Build Keepass2Android Offline
|
||||
REM This is the same as the build-xamarin.bat script except Flavor is set to NoNet
|
||||
|
||||
@echo OFF
|
||||
|
||||
set Flavor=NoNet
|
||||
set Configuration=Debug
|
||||
|
||||
if NOT "%Flavor%" == "" (
|
||||
set MSBUILD_PARAMS=%MSBUILD_PARAMS% -p:Flavor=%Flavor%
|
||||
)
|
||||
if NOT "%Configuration%" == "" (
|
||||
set MSBUILD_PARAMS=%MSBUILD_PARAMS% -p:Configuration=%Configuration%
|
||||
)
|
||||
|
||||
cd ..\Kp2aBusinessLogic\Io
|
||||
if exist "DropboxFileStorageKeys.cs" (
|
||||
echo DropboxFileStorageKeys.cs found.
|
||||
) ELSE (
|
||||
echo Put dummy DropboxFileStorageKeys.cs
|
||||
xcopy DropboxFileStorageKeysDummy.cs DropboxFileStorageKeys.cs
|
||||
)
|
||||
cd ..\..
|
||||
|
||||
REM Get Visual Studio install path & call vcvarsall.bat
|
||||
FOR /F "tokens=* USEBACKQ" %%F IN (`"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -property installationPath`) DO (
|
||||
SET VS_INSTALL_PATH=%%F
|
||||
)
|
||||
echo Visual Studio Install PATH: %VS_INSTALL_PATH%
|
||||
|
||||
IF "%VCToolsVersion%" == "" (
|
||||
echo Setting up Visual Studio Environment
|
||||
call "%VS_INSTALL_PATH%\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64 || exit /b
|
||||
)
|
||||
|
||||
REM Download NuGet dependencies
|
||||
echo Download NuGet dependencies
|
||||
msbuild KeePass.sln -t:restore -p:RestorePackagesConfig=true || exit /b
|
||||
|
||||
REM Build
|
||||
echo Start building Keepass2Android
|
||||
@echo ON
|
||||
msbuild KeePass.sln /target:keepass2android-app /p:BuildProjectReferences=true %MSBUILD_PARAMS% /p:Platform="Any CPU" /p:AndroidBuildApplicationPackage=True -m || exit /b
|
||||
|
||||
@echo OFF
|
||||
cd build-scripts
|
||||
echo APK can be found in src\keepass2android\bin\%Configuration%
|
||||
Reference in New Issue
Block a user