diff --git a/appveyor.yml b/appveyor.yml index 41c852b77..0ae8851ba 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -16,4 +16,5 @@ branches: except: - l10n_master skip_tags: true +configuration: Release image: Visual Studio 2017 diff --git a/src/Android/ci-build-apks.ps1 b/src/Android/ci-build-apks.ps1 index 94e24db47..231cc4bbb 100644 --- a/src/Android/ci-build-apks.ps1 +++ b/src/Android/ci-build-apks.ps1 @@ -1,5 +1,6 @@ $rootPath = $env:APPVEYOR_BUILD_FOLDER; $androidPath = $($rootPath + "\src\Android\Android.csproj"); +$appPath = $($rootPath + "\src\App\App.csproj"); echo "##### Increment Version" @@ -31,8 +32,14 @@ $signedApkDestPath = $($rootPath + "\com.x8bit.bitwarden-" + $env:APPVEYOR_BUILD Copy-Item $signedApkPath $signedApkDestPath +echo "##### Clean Android and App" + +msbuild "$($androidPath)" "/t:Clean" "/p:Configuration=FDroid" +msbuild "$($appPath)" "/t:Clean" "/p:Configuration=FDroid" + echo "##### Build and Sign FDroid Configuration" +msbuild "$($androidPath)" "/logger:C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" "/p:Configuration=FDroid" msbuild "$($androidPath)" "/t:SignAndroidPackage" "/p:Configuration=FDroid" "/p:AndroidKeyStore=true" "/p:AndroidSigningKeyAlias=bitwarden" "/p:AndroidSigningKeyPass=$($env:keystore_password)" "/p:AndroidSigningKeyStore=8bit.keystore" "/p:AndroidSigningStorePass=$($env:keystore_password)" "/v:quiet" echo "##### Copy FDroid apk to project root"