1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-12-02 13:13:31 +01:00
bitwarden-mobile/.github/scripts/android/decrypt-secrets.ps1

23 lines
1.2 KiB
PowerShell
Raw Normal View History

2020-06-08 18:14:10 +02:00
$rootPath = $env:GITHUB_WORKSPACE;
2020-06-09 17:41:03 +02:00
$decryptSecretPath = $($rootPath + "\.github\scripts\decrypt-secret.ps1");
2020-06-08 18:56:58 +02:00
2020-06-08 18:14:10 +02:00
$appKeystorePlayFilename = "app_play-keystore.jks";
$appKeystorePlayPath = $($rootPath + "\src\Android\$appKeystorePlayFilename");
$appKeystoreUploadFilename = "app_upload-keystore.jks";
$appKeystoreUploadPath = $($rootPath + "\src\Android\$appKeystoreUploadFilename");
$appKeystoreFdroidFilename = "app_fdroid-keystore.jks";
$appKeystoreFdroidPath = $($rootPath + "\src\Android\$appKeystoreFdroidFilename");
$googleServicesFilename = "google-services.json";
$googleServicesPath = $($rootPath + "\src\Android\$googleServicesFilename");
Invoke-Expression `
"& `"$decryptSecretPath`" -filename $($appKeystorePlayFilename + ".gpg") -output $($appKeystorePlayPath)"
Invoke-Expression `
"& `"$decryptSecretPath`" -filename $($appKeystoreUploadFilename + ".gpg") -output $($appKeystoreUploadPath)"
Invoke-Expression `
"& `"$decryptSecretPath`" -filename $($appKeystoreFdroidFilename + ".gpg") -output $($appKeystoreFdroidPath)"
Invoke-Expression `
"& `"$decryptSecretPath`" -filename $($googleServicesFilename + ".gpg") -output $($googleServicesPath)"
2020-06-09 16:21:46 +02:00
Invoke-Expression "& `"$decryptSecretPath`" -filename play_creds.json.gpg"