mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-01 22:31:19 +00:00
62 lines
2.0 KiB
JSON
62 lines
2.0 KiB
JSON
{
|
|
"version": "1.20.5",
|
|
"description": "An open source programming language that makes it easy to build simple, reliable, and efficient software.",
|
|
"homepage": "https://golang.org",
|
|
"license": "BSD-3-Clause",
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://dl.google.com/go/go1.20.5.windows-amd64.zip",
|
|
"hash": "c04a4ed73c3624d5b4c4f62e44a141549cc0bfd83a7492c31ca8b86b3752f077"
|
|
},
|
|
"32bit": {
|
|
"url": "https://dl.google.com/go/go1.20.5.windows-386.zip",
|
|
"hash": "af6655ad9eff15baebb738b7b416f0f67037b1cd03036bfa4e8aede393fb7c44"
|
|
},
|
|
"arm64": {
|
|
"url": "https://dl.google.com/go/go1.20.5.windows-arm64.zip",
|
|
"hash": "12473045a34e21574fee8f9a4ecfcff55be2b9d19663d9aaec659f9495212c73"
|
|
}
|
|
},
|
|
"extract_dir": "go",
|
|
"installer": {
|
|
"script": [
|
|
"$envgopath = \"$env:USERPROFILE\\go\"",
|
|
"if ($env:GOPATH) { $envgopath = $env:GOPATH }",
|
|
"info \"Adding '$envgopath\\bin' to PATH...\"",
|
|
"add_first_in_path \"$envgopath\\bin\" $global"
|
|
]
|
|
},
|
|
"uninstaller": {
|
|
"script": [
|
|
"$envgopath = \"$env:USERPROFILE\\go\"",
|
|
"if ($env:GOPATH) { $envgopath = $env:GOPATH }",
|
|
"info \"Removing '$envgopath\\bin' from PATH...\"",
|
|
"remove_from_path \"$envgopath\\bin\" $global"
|
|
]
|
|
},
|
|
"bin": [
|
|
"bin\\go.exe",
|
|
"bin\\gofmt.exe"
|
|
],
|
|
"checkver": {
|
|
"url": "https://golang.org/dl/",
|
|
"regex": "go([\\d.]+)\\.windows-"
|
|
},
|
|
"autoupdate": {
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://dl.google.com/go/go$version.windows-amd64.zip"
|
|
},
|
|
"32bit": {
|
|
"url": "https://dl.google.com/go/go$version.windows-386.zip"
|
|
},
|
|
"arm64": {
|
|
"url": "https://dl.google.com/go/go$version.windows-arm64.zip"
|
|
}
|
|
},
|
|
"hash": {
|
|
"url": "$url.sha256"
|
|
}
|
|
}
|
|
}
|