Skip to content

Commit

Permalink
fix gpg2 path
Browse files Browse the repository at this point in the history
  • Loading branch information
danielli90 committed Jan 9, 2016
1 parent f503416 commit d7e65ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion Build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d7e65ec

Please sign in to comment.