diff --git a/appveyor.yml b/appveyor.yml index ee0bd1c37..94eed02ae 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -56,10 +56,10 @@ before_build: if($isWindows) { nuget restore 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) { - 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 } } @@ -110,7 +110,7 @@ on_success: fi - ps: | 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 dotnet Publisher.dll ` $env:APPVEYOR_BUILD_FOLDER\store\google\Publisher\play_creds.json ` diff --git a/src/Android/ci-build-apks.ps1 b/src/Android/ci-build-apks.ps1 index 18aa0ae88..8e32c29d1 100644 --- a/src/Android/ci-build-apks.ps1 +++ b/src/Android/ci-build-apks.ps1 @@ -23,7 +23,7 @@ echo "########################################" $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 + "\appveyor-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) `