mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
21 lines
1.6 KiB
YAML
21 lines
1.6 KiB
YAML
install:
|
|
- appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
|
|
before_build:
|
|
- nuget restore
|
|
- IF DEFINED keystore_dec_secret nuget install secure-file -ExcludeVersion
|
|
- IF DEFINED google_services_dec_secret secure-file\tools\secure-file -decrypt src\Android\google-services.json.enc -secret %google_services_dec_secret%
|
|
after_build:
|
|
- ps: IF($env:keystore_dec_secret) { .\src\Android\increment-version.ps1 $($env:APPVEYOR_BUILD_FOLDER) $($env:APPVEYOR_BUILD_NUMBER) }
|
|
- 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"
|
|
- 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 }
|
|
on_success:
|
|
- IF DEFINED play_dec_secret secure-file\tools\secure-file -decrypt store\google\Publisher\play_creds.json.enc -secret %play_dec_secret%
|
|
- 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%\src\Android\bin\Release\com.x8bit.bitwarden-Signed.apk alpha
|
|
artifacts:
|
|
- path: com.x8bit.bitwarden-%APPVEYOR_BUILD_NUMBER%.apk
|
|
branches:
|
|
except:
|
|
- l10n_master
|
|
skip_tags: true
|
|
image: Visual Studio 2017
|