From 6883864e2d1b5d1ec581862dc334ca8b437853af Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 16 Apr 2020 16:31:52 -0400 Subject: [PATCH] sign with upload keystore --- appveyor.yml | 2 +- src/Android/Android.csproj | 1 + src/Android/ci-build-apks.ps1 | 9 ++++++--- src/Android/upload-keystore.jks.enc | Bin 0 -> 2288 bytes 4 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 src/Android/upload-keystore.jks.enc diff --git a/appveyor.yml b/appveyor.yml index 49da3834c..ee0bd1c37 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -55,7 +55,7 @@ before_build: - ps: | if($isWindows) { nuget restore - if($env:KEYSTORE_DEC_SECRET -or $env:GOOGLE_SERVICES_DEC_SECRET -or $env:PLAY_DEC_SECRET) { + if($env:UPLOAD_KEYSTORE_DEC_SECRET -or$env:KEYSTORE_DEC_SECRET -or $env:GOOGLE_SERVICES_DEC_SECRET -or $env:PLAY_DEC_SECRET) { nuget install secure-file -ExcludeVersion } if($env:GOOGLE_SERVICES_DEC_SECRET) { diff --git a/src/Android/Android.csproj b/src/Android/Android.csproj index 89ef19db1..afe27f7a3 100644 --- a/src/Android/Android.csproj +++ b/src/Android/Android.csproj @@ -152,6 +152,7 @@ + diff --git a/src/Android/ci-build-apks.ps1 b/src/Android/ci-build-apks.ps1 index dbf191f0a..240330c07 100644 --- a/src/Android/ci-build-apks.ps1 +++ b/src/Android/ci-build-apks.ps1 @@ -22,18 +22,21 @@ echo "##### Decrypt Keystore" echo "########################################" $encKeystorePath = $($rootPath + "\src\Android\8bit.keystore.enc"); +$encUploadKeystorePath = $($rootPath + "\src\Android\upload-keystore.jks.enc"); $secureFilePath = $($rootPath + "\secure-file\tools\secure-file.exe"); Invoke-Expression "& `"$secureFilePath`" -decrypt $($encKeystorePath) -secret $($env:keystore_dec_secret)" +Invoke-Expression "& `"$secureFilePath`" -decrypt $($encUploadKeystorePath) -secret $($env:upload_keystore_dec_secret)" echo "########################################" echo "##### Sign Release Configuration" echo "########################################" msbuild "$($androidPath)" "/t:SignAndroidPackage" "/p:Configuration=Release" "/p:AndroidKeyStore=true" ` - "/p:AndroidSigningKeyAlias=bitwarden" "/p:AndroidSigningKeyPass=$($env:keystore_password)" ` - "/p:AndroidSigningKeyStore=8bit.keystore" "/p:AndroidSigningStorePass=$($env:keystore_password)" "/v:quiet" - + "/p:AndroidSigningKeyAlias=upload" "/p:AndroidSigningKeyPass=$($env:upload_keystore_password)" ` + "/p:AndroidSigningKeyStore=upload-keystore.jks.enc" "/p:AndroidSigningStorePass=$($env:upload_keystore_password)" ` + "/v:quiet" + echo "########################################" echo "##### Copy Release apk to project root" echo "########################################" diff --git a/src/Android/upload-keystore.jks.enc b/src/Android/upload-keystore.jks.enc new file mode 100644 index 0000000000000000000000000000000000000000..bf413f8eab48c98233b80cfc0f132f8e0a4bdfbe GIT binary patch literal 2288 zcmVU~&~B-^rjn1^0=4hhQ%W6BC(iP8UeTHOFR%D2L>ECKc~JNiz4CY>$2hlcnnU~Os=y~#AE$kr4=#{ z$1+F3HgOA%bay(xh{{?<4d*|$n;1O^i!OJs9so*dI}qz#gj-47E{JWFGpSbuR5^vIIW@7yX5(o}wGEjyTgc&tq4nqb!tppk| zfe$M7F8q!du0dA0fpBhnHok|ew=q;rq#7jNyc8t?t_N!4M{z;0*#jN&mjaRfTJXcM9$E-5>Dg!{I|Yxd{ti*OeE zrJ;4vDdYcoy8Dn&8flJloj6jh=rxHHI7;)&j$}u|%q75=4;JZtYtZri70%lDID7C3 z?_bf8EMqORMh}l!7&YREl={3lQd=421~jFLa|GrPp&=5vi4{4ne``0DjD7$;w8F6v z?rNzu;Z@;)KmN@eVt8sobE};>F8RW1gPmi&`+Gcbk@rB-Efb>5PlI@HwL6rWoZ?!f z9GFQ1n?8MXaNFGZIiGQL8F^X@=-ENvcT%D*{zBd;M@)(U21?R%6vh&l`VLzdu!v24 zYnJ4zOEyu-%kBcphjvVh%`z;dJkFU1bD%Gek+9(eJrv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