Skip to content

Instantly share code, notes, and snippets.

@dragon788
Created October 18, 2017 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dragon788/3726684bb7184bb45a0de685196c8ab3 to your computer and use it in GitHub Desktop.
Save dragon788/3726684bb7184bb45a0de685196c8ab3 to your computer and use it in GitHub Desktop.
GoPass #security #build

Build

# requires chocolatey
# iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
cinst golang git

$go_path = "c:\projects\go"
$env:GOPATH += ";$go_path"
go get -u github.com/justwatchcom/gopass

$exe_path = "$go_path\bin\gopass.exe"
if (!(Test-Path $exe_path)) {throw "gopass.exe build failed"}

# To make it available on the PATH quickly:
#import-module $env:chocolateyInstall\helpers\chocolateyInstaller.psm1
#Install-BinFile gopass $exe_path

Use

#cinst gopass     # once on chocolatey repository, will automatically install gpg-vanilla & git if needed.
cinst gpg-vanilla git 
Update-SessionEnvironment  #refresh PATH in current shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment