2017-12-14 00:59:14 +03:00
install :
- appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
2017-02-11 09:13:03 +03:00
before_build :
- nuget restore
2017-02-14 05:57:11 +03:00
- IF DEFINED keystore_dec_secret nuget install secure-file -ExcludeVersion
2017-12-22 06:39:04 +03:00
- IF DEFINED google_services_dec_secret secure-file\tools\secure-file -decrypt src\Android\google-services.json.enc -secret %google_services_dec_secret%
2017-02-11 09:13:03 +03:00
after_build :
2017-02-17 04:05:20 +03:00
- ps : IF($env:keystore_dec_secret) { .\src\Android\increment-version.ps1 $($env:APPVEYOR_BUILD_FOLDER) $($env:APPVEYOR_BUILD_NUMBER) }
2017-02-14 05:57:11 +03:00
- IF DEFINED keystore_dec_secret secure-file\tools\secure-file -decrypt src\Android\8bit.keystore.enc -secret %keystore_dec_secret%
- IF DEFINED keystore_password msbuild "/t:SignAndroidPackage" "/p:Configuration=Release" "/p:AndroidKeyStore=true" "/p:AndroidSigningKeyAlias=bitwarden" "/p:AndroidSigningKeyPass=%keystore_password%" "/p:AndroidSigningKeyStore=8bit.keystore" "/p:AndroidSigningStorePass=%keystore_password%" "src\Android\Android.csproj"
2017-02-17 04:05:20 +03:00
- ps : IF($env:keystore_dec_secret) { copy-item src\Android\bin\Release\com.x8bit.bitwarden-Signed.apk .\com.x8bit.bitwarden-$($env:APPVEYOR_BUILD_NUMBER).apk }
2018-01-11 00:53:09 +03:00
- IF DEFINED keystore_password msbuild ".\src\Android\Android.csproj" "/t:Clean" "/p:Configuration=FDroid"
- IF DEFINED keystore_password msbuild ".\src\App\App.csproj" "/t:Clean" "/p:Configuration=FDroid"
2018-01-11 01:19:56 +03:00
- ps : IF($env:keystore_dec_secret) { .\src\Android\fdroid-remove-libs.ps1 $($env:APPVEYOR_BUILD_FOLDER) }
- IF DEFINED keystore_password nuget restore
2018-01-11 00:10:47 +03:00
- IF DEFINED keystore_password msbuild ".\src\Android\Android.csproj" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" "/p:Configuration=FDroid"
2018-01-10 17:28:30 +03:00
- IF DEFINED keystore_password msbuild "/t:SignAndroidPackage" "/p:Configuration=FDroid" "/p:AndroidKeyStore=true" "/p:AndroidSigningKeyAlias=bitwarden" "/p:AndroidSigningKeyPass=%keystore_password%" "/p:AndroidSigningKeyStore=8bit.keystore" "/p:AndroidSigningStorePass=%keystore_password%" "src\Android\Android.csproj"
2018-01-10 17:35:47 +03:00
- ps : IF($env:keystore_dec_secret) { copy-item src\Android\bin\FDroid\com.x8bit.bitwarden-Signed.apk .\com.x8bit.bitwarden-fdroid-$($env:APPVEYOR_BUILD_NUMBER).apk }
2017-02-11 09:13:03 +03:00
on_success :
2017-02-14 05:57:11 +03:00
- IF DEFINED play_dec_secret secure-file\tools\secure-file -decrypt store\google\Publisher\play_creds.json.enc -secret %play_dec_secret%
2018-01-11 00:10:47 +03:00
- IF DEFINED play_dec_secret dotnet store\google\Publisher\bin\Debug\netcoreapp2.0\Publisher.dll %APPVEYOR_BUILD_FOLDER%\store\google\Publisher\play_creds.json %APPVEYOR_BUILD_FOLDER%\com.x8bit.bitwarden-%APPVEYOR_BUILD_NUMBER%.apk alpha
2017-02-11 09:13:03 +03:00
artifacts :
2017-05-21 20:24:44 +03:00
- path : com.x8bit.bitwarden-%APPVEYOR_BUILD_NUMBER%.apk
2018-01-10 17:35:47 +03:00
- path : com.x8bit.bitwarden-fdroid-%APPVEYOR_BUILD_NUMBER%.apk
2017-05-21 20:24:44 +03:00
branches :
except :
2017-05-21 20:31:55 +03:00
- l10n_master
2017-11-21 00:32:23 +03:00
skip_tags : true
2017-12-14 01:04:31 +03:00
image : Visual Studio 2017