{
    "homepage": "https://github.com/tristanisham/zvm",
    "version": "0.8.20",
    "description": "Zig Version Manager (zvm) is a tool for managing your Zig installs",
    "license": "MIT",
    "architecture": {
        "64bit": {
            "url": "https://github.com/tristanisham/zvm/releases/download/v0.8.20/zvm-windows-amd64.zip",
            "hash": "3e1602447f0ced4735ccdea92c7d6e0c1e27f3d982c557e7353047b588ec436a"
        },
        "arm64": {
            "url": "https://github.com/tristanisham/zvm/releases/download/v0.8.20/zvm-windows-arm64.zip",
            "hash": "5016aad67a3b50697d0bf17f1c759372ba3fed92a6839a1571f49ac35e3f1ae0"
        }
    },
    "bin": "zvm.exe",
    "checkver": {
        "github": "https://github.com/tristanisham/zvm"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/tristanisham/zvm/releases/download/v$version/zvm-windows-amd64.zip"
            },
            "arm64": {
                "url": "https://github.com/tristanisham/zvm/releases/download/v$version/zvm-windows-arm64.zip"
            }
        }
    },
    "post_install": [
        "if (Test-Path ~\\.zvm) {",
        "   if ($null -eq (Get-Item ~\\.zvm).LinkType) {",
        "       Rename-Item -Path ~\\.zvm -NewName ~\\.zvm.old -Force",
        "   } else {",
        "       Remove-Item -Path ~\\.zvm -Force",
        "   }",
        "}",
        "New-Item -Path ~/.zvm -Target \"$dir\\data\" -ItemType Junction | Out-Null"
    ],
    "uninstaller": {
        "script": [
            "if ((Test-Path ~\\.zvm) -and ($null -ne (Get-Item ~\\.zvm).LinkType)) {",
            "   Remove-Item -Path ~\\.zvm -Force",
            "}",
            "if (Test-Path ~\\.zvm.old) {",
            "   Rename-Item -Path ~\\.zvm.old -NewName .zvm -Force",
            "}"
        ]
    },
    "persist": "data",
    "env_add_path": "data\\bin"
}
