mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 10:28:28 +03:00
sign with upload keystore
This commit is contained in:
parent
15bc395454
commit
6883864e2d
4 changed files with 8 additions and 4 deletions
|
@ -55,7 +55,7 @@ before_build:
|
||||||
- ps: |
|
- ps: |
|
||||||
if($isWindows) {
|
if($isWindows) {
|
||||||
nuget restore
|
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
|
nuget install secure-file -ExcludeVersion
|
||||||
}
|
}
|
||||||
if($env:GOOGLE_SERVICES_DEC_SECRET) {
|
if($env:GOOGLE_SERVICES_DEC_SECRET) {
|
||||||
|
|
|
@ -152,6 +152,7 @@
|
||||||
<GoogleServicesJson Include="google-services.json" />
|
<GoogleServicesJson Include="google-services.json" />
|
||||||
<GoogleServicesJson Include="google-services.json.enc" />
|
<GoogleServicesJson Include="google-services.json.enc" />
|
||||||
<None Include="Properties\AndroidManifest.xml" />
|
<None Include="Properties\AndroidManifest.xml" />
|
||||||
|
<None Include="upload-keystore.jks.enc" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<AndroidResource Include="Resources\layout\Tabbar.axml" />
|
<AndroidResource Include="Resources\layout\Tabbar.axml" />
|
||||||
|
|
|
@ -22,17 +22,20 @@ echo "##### Decrypt Keystore"
|
||||||
echo "########################################"
|
echo "########################################"
|
||||||
|
|
||||||
$encKeystorePath = $($rootPath + "\src\Android\8bit.keystore.enc");
|
$encKeystorePath = $($rootPath + "\src\Android\8bit.keystore.enc");
|
||||||
|
$encUploadKeystorePath = $($rootPath + "\src\Android\upload-keystore.jks.enc");
|
||||||
$secureFilePath = $($rootPath + "\secure-file\tools\secure-file.exe");
|
$secureFilePath = $($rootPath + "\secure-file\tools\secure-file.exe");
|
||||||
|
|
||||||
Invoke-Expression "& `"$secureFilePath`" -decrypt $($encKeystorePath) -secret $($env:keystore_dec_secret)"
|
Invoke-Expression "& `"$secureFilePath`" -decrypt $($encKeystorePath) -secret $($env:keystore_dec_secret)"
|
||||||
|
Invoke-Expression "& `"$secureFilePath`" -decrypt $($encUploadKeystorePath) -secret $($env:upload_keystore_dec_secret)"
|
||||||
|
|
||||||
echo "########################################"
|
echo "########################################"
|
||||||
echo "##### Sign Release Configuration"
|
echo "##### Sign Release Configuration"
|
||||||
echo "########################################"
|
echo "########################################"
|
||||||
|
|
||||||
msbuild "$($androidPath)" "/t:SignAndroidPackage" "/p:Configuration=Release" "/p:AndroidKeyStore=true" `
|
msbuild "$($androidPath)" "/t:SignAndroidPackage" "/p:Configuration=Release" "/p:AndroidKeyStore=true" `
|
||||||
"/p:AndroidSigningKeyAlias=bitwarden" "/p:AndroidSigningKeyPass=$($env:keystore_password)" `
|
"/p:AndroidSigningKeyAlias=upload" "/p:AndroidSigningKeyPass=$($env:upload_keystore_password)" `
|
||||||
"/p:AndroidSigningKeyStore=8bit.keystore" "/p:AndroidSigningStorePass=$($env:keystore_password)" "/v:quiet"
|
"/p:AndroidSigningKeyStore=upload-keystore.jks.enc" "/p:AndroidSigningStorePass=$($env:upload_keystore_password)" `
|
||||||
|
"/v:quiet"
|
||||||
|
|
||||||
echo "########################################"
|
echo "########################################"
|
||||||
echo "##### Copy Release apk to project root"
|
echo "##### Copy Release apk to project root"
|
||||||
|
|
BIN
src/Android/upload-keystore.jks.enc
Normal file
BIN
src/Android/upload-keystore.jks.enc
Normal file
Binary file not shown.
Loading…
Reference in a new issue