lightsystemdarkgreen
current commit
261107.13 · zvm: Update to version 0.9.5
{
    "version": "0.9.5",
    "description": "Zig Version Manager (zvm) is a tool for managing your Zig installs",
    "homepage": "https://www.zvm.app",
    "license": "MIT",
    "architecture": {
        "64bit": {
            "url": "https://github.com/tristanisham/zvm/releases/download/v0.9.5/zvm-windows-amd64.zip",
            "hash": "dfe97cd7ded99c5538ff4b3fac175f8eaccadb3fbf2004ad41e408cf758ff827"
        },
        "arm64": {
            "url": "https://github.com/tristanisham/zvm/releases/download/v0.9.5/zvm-windows-arm64.zip",
            "hash": "6883fe90fe2c90036e5b982cfc4a31656523a98a53355b23fd56017950473935"
        }
    },
    "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"
}