mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
update secure-file tool
This commit is contained in:
parent
56c09eae90
commit
6f146b888b
2 changed files with 4 additions and 4 deletions
|
@ -56,10 +56,10 @@ before_build:
|
||||||
if($isWindows) {
|
if($isWindows) {
|
||||||
nuget restore
|
nuget restore
|
||||||
if($env:UPLOAD_KEYSTORE_DEC_SECRET -or$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
|
iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/appveyor/secure-file/master/install.ps1'))
|
||||||
}
|
}
|
||||||
if($env:GOOGLE_SERVICES_DEC_SECRET) {
|
if($env:GOOGLE_SERVICES_DEC_SECRET) {
|
||||||
secure-file\tools\secure-file -decrypt src\Android\google-services.json.enc `
|
appveyor-tools\secure-file -decrypt src\Android\google-services.json.enc `
|
||||||
-secret $env:GOOGLE_SERVICES_DEC_SECRET
|
-secret $env:GOOGLE_SERVICES_DEC_SECRET
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -110,7 +110,7 @@ on_success:
|
||||||
fi
|
fi
|
||||||
- ps: |
|
- ps: |
|
||||||
if($isWindows -and $env:PLAY_DEC_SECRET) {
|
if($isWindows -and $env:PLAY_DEC_SECRET) {
|
||||||
secure-file\tools\secure-file -decrypt store\google\Publisher\play_creds.json.enc -secret $env:PLAY_DEC_SECRET
|
appveyor-tools\secure-file -decrypt store\google\Publisher\play_creds.json.enc -secret $env:PLAY_DEC_SECRET
|
||||||
cd store\google\Publisher\bin\Release\netcoreapp2.0
|
cd store\google\Publisher\bin\Release\netcoreapp2.0
|
||||||
dotnet Publisher.dll `
|
dotnet Publisher.dll `
|
||||||
$env:APPVEYOR_BUILD_FOLDER\store\google\Publisher\play_creds.json `
|
$env:APPVEYOR_BUILD_FOLDER\store\google\Publisher\play_creds.json `
|
||||||
|
|
|
@ -23,7 +23,7 @@ echo "########################################"
|
||||||
|
|
||||||
$encKeystorePath = $($rootPath + "\src\Android\8bit.keystore.enc");
|
$encKeystorePath = $($rootPath + "\src\Android\8bit.keystore.enc");
|
||||||
$encUploadKeystorePath = $($rootPath + "\src\Android\upload-keystore.jks.enc");
|
$encUploadKeystorePath = $($rootPath + "\src\Android\upload-keystore.jks.enc");
|
||||||
$secureFilePath = $($rootPath + "\secure-file\tools\secure-file.exe");
|
$secureFilePath = $($rootPath + "\appveyor-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) `
|
Invoke-Expression "& `"$secureFilePath`" -decrypt $($encUploadKeystorePath) -secret $($env:upload_keystore_dec_secret) `
|
||||||
|
|
Loading…
Reference in a new issue