noah the goodra 2f628aef76 create go shims instead of adding dir to path (#1831)
This change makes the script create shims in the scoop shims directory instead of adding another directory to the path env variable. I believe this might be prefered instead of adding to the path variable.
2017-11-11 21:36:25 +01:00

46 lines
1.5 KiB
JSON

{
"version": "1.9.2",
"homepage": "https://golang.org",
"license": "https://golang.org/LICENSE",
"extract_dir": "go",
"env_set": {
"GOROOT": "$dir"
},
"bin": ["bin/go.exe","bin/gofmt.exe","bin/godoc.exe"],
"installer": {
"script": "add_first_in_path \"$env:USERPROFILE\\go\\bin\" $global"
},
"uninstaller": {
"script": "remove_from_path \"$env:USERPROFILE\\go\\bin\" $global"
},
"architecture": {
"64bit": {
"url": "https://storage.googleapis.com/golang/go1.9.2.windows-amd64.zip",
"hash": "682ec3626a9c45b657c2456e35cadad119057408d37f334c6c24d88389c2164c"
},
"32bit": {
"url": "https://storage.googleapis.com/golang/go1.9.2.windows-386.zip",
"hash": "35d3be5d7b97c6d11ffb76c1b19e20a824e427805ee918e82c08a2e5793eda20"
}
},
"checkver": "Build version go([\\d\\.]+)\\.",
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://storage.googleapis.com/golang/go$version.windows-amd64.zip"
},
"32bit": {
"url": "https://storage.googleapis.com/golang/go$version.windows-386.zip"
}
},
"hash": {
"url": "$url.sha256"
}
},
"notes": "
Your GOROOT has been set to: $dir
You can run 'go env GOROOT' to view this at any time.
\"$env:USERPROFILE\\go\\bin)\" has been added to your PATH.
"
}