diff --git a/bucket/g.json b/bucket/g.json new file mode 100644 index 0000000000000..8a7ef6119817e --- /dev/null +++ b/bucket/g.json @@ -0,0 +1,52 @@ +{ + "version": "1.8.0", + "description": "Golang Version Manager", + "homepage": "https://github.com/voidint/g", + "license": "MIT", + "architecture": { + "64bit": { + "url": "https://github.com/voidint/g/releases/download/v1.8.0/g1.8.0.windows-amd64.zip", + "hash": "93ad318012c8dc601b93ad44ce82b10fbdb23e169d831bb041061c0f6783c7e9" + }, + "32bit": { + "url": "https://github.com/voidint/g/releases/download/v1.8.0/g1.8.0.windows-386.zip", + "hash": "25624f1f22355d23b914a5bc387c58f744b5c66d183328b0e951bbec1ce72a57" + }, + "arm64": { + "url": "https://github.com/voidint/g/releases/download/v1.8.0/g1.8.0.windows-arm64.zip", + "hash": "a0e6068142aee30812db109880ff310056fdc98461f49f1794b206cca06437f0" + } + }, + "installer": { + "script": [ + "[Environment]::SetEnvironmentVariable('GOROOT', \"$env:USERPROFILE\\.g\\go\", 'Process')", + "info \"Adding '$env:GOROOT\\bin' to PATH...\"", + "Add-Path -Path \"$env:GOROOT\\bin\" -Global:$global" + ] + }, + "uninstaller": { + "script": [ + "[Environment]::SetEnvironmentVariable('GOROOT', \"$env:USERPROFILE\\.g\\go\", 'Process')", + "info \"Removing '$env:GOROOT\\bin' from PATH...\"", + "Remove-Path -Path \"$env:GOROOT\\bin\" -Global:$global" + ] + }, + "bin": "g.exe", + "env_set": { + "GOROOT": "$env:USERPROFILE\\.g\\go" + }, + "checkver": "github", + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://github.com/voidint/g/releases/download/v$version/g$version.windows-amd64.zip" + }, + "32bit": { + "url": "https://github.com/voidint/g/releases/download/v$version/g$version.windows-386.zip" + }, + "arm64": { + "url": "https://github.com/voidint/g/releases/download/v$version/g$version.windows-arm64.zip" + } + } + } +}