Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.