From d7e65ec1bb3dafe5cef86b79bb00de8d1c866325 Mon Sep 17 00:00:00 2001 From: Daniel Li Date: Fri, 8 Jan 2016 18:37:46 -0800 Subject: [PATCH] fix gpg2 path --- Build.cmd | 4 +++- appveyor.yml | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Build.cmd b/Build.cmd index 6edd2d30..0dcbd280 100644 --- a/Build.cmd +++ b/Build.cmd @@ -65,14 +65,16 @@ if not exist "%ProgramFiles(x86)%\GNU\GnuPG\pub\gpg2.exe" ( @rem @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin @rem :chocodone - @rem install signing keys +echo "ready to install signing keys" +set path=%ProgramFiles(x86)%\GNU\GnuPG\pub;%path% gpg2 --batch --yes --import build\data\private_token.asc gpg2 --batch --yes --import build\data\public_token.asc pushd %APPDATA%\gnupg del /q trustdb.gpg popd gpg2 --batch --yes --import-ownertrust < build\data\ownertrustblob.txt +gpg2 --list-key call mvn clean deploy -DdoSign=true -DdoRelease=true goto :mvndone diff --git a/appveyor.yml b/appveyor.yml index dd82c149..c62ac063 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -11,15 +11,12 @@ environment: secure: 5IchMuHkc/kngre44VUIxA== install: - - cmd: echo securefile=%securefile%, ossrh-user=%ossrh-user%, ossrh-pass=%ossrh-pass%, gpg-pass=%gpg-pass% - cmd: nuget install secure-file -ExcludeVersion - cmd: secure-file\tools\secure-file -decrypt build\data\private_token.asc.enc -secret %securefile% -out build\data\private_token.asc - cmd: secure-file\tools\secure-file -decrypt build\data\public_token.asc.enc -secret %securefile% -out build\data\public_token.asc - cmd: secure-file\tools\secure-file -decrypt build\data\ownertrustblob.txt.enc -secret %securefile% -out build\data\ownertrustblob.txt - cmd: if not exist "%USERPROFILE%\.m2" mkdir %USERPROFILE%\.m2 - cmd: powershell -NoProfile -ExecutionPolicy Bypass -Command "((Get-Content build\data\settings.xml) -replace '{user}', '%ossrh-user%' -replace '{pass}', '%ossrh-pass%' -replace '{passphrase}', '%gpg-pass%') | Set-Content %USERPROFILE%\.m2\settings.xml -force" -# debug; To be removed - - cmd: type %USERPROFILE%\.m2\settings.xml #build C# solution and scala project build_script: