{
    "version": "1.8.0",
    "description": "A command-line tool that provides convenient management and switching of multiple versions of the Go environment.",
    "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"
        ]
    },
    "env_set": {
        "GOROOT": "$env:USERPROFILE\\.g\\go"
    },
    "bin": "g.exe",
    "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"
        ]
    },
    "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"
            }
        }
    }
}
