2020-06-08 18:14:10 +02:00
|
|
|
|
$rootPath = $env:GITHUB_WORKSPACE;
|
|
|
|
|
|
2020-06-09 17:52:23 +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";
|
2020-06-09 17:52:23 +02:00
|
|
|
|
$appKeystorePlayPath = $($rootPath + "/src/Android/$appKeystorePlayFilename");
|
2020-06-08 18:14:10 +02:00
|
|
|
|
$appKeystoreUploadFilename = "app_upload-keystore.jks";
|
2020-06-09 17:52:23 +02:00
|
|
|
|
$appKeystoreUploadPath = $($rootPath + "/src/Android/$appKeystoreUploadFilename");
|
2020-06-08 18:14:10 +02:00
|
|
|
|
$appKeystoreFdroidFilename = "app_fdroid-keystore.jks";
|
2020-06-09 17:52:23 +02:00
|
|
|
|
$appKeystoreFdroidPath = $($rootPath + "/src/Android/$appKeystoreFdroidFilename");
|
2020-06-08 18:14:10 +02:00
|
|
|
|
$googleServicesFilename = "google-services.json";
|
2020-06-09 17:52:23 +02:00
|
|
|
|
$googleServicesPath = $($rootPath + "/src/Android/$googleServicesFilename");
|
2020-06-08 18:14:10 +02:00
|
|
|
|
|
|
|
|
|
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"
|