{
    "version": "0.5.0",
    "description": "Krew is the package manager for kubectl plugins.",
    "homepage": "https://krew.sigs.k8s.io/",
    "license": "Apache-2.0",
    "notes": [
        "This application creates symlinks during installation of plugins.",
        "You can install 'gsudo' to run it as administrator, or enable 'Developer Mode' in Windows 10 Settings to bypass the elevation requirement."
    ],
    "architecture": {
        "64bit": {
            "url": "https://github.com/kubernetes-sigs/krew/releases/download/v0.5.0/krew.exe",
            "hash": "a5cb2f630e6a8e0b8ff238dc77e7288864bb3089783962ec8b08c80f38ca6a91"
        }
    },
    "installer": {
        "script": [
            "[Environment]::SetEnvironmentVariable('KREW_ROOT', \"$persist_dir\\.krew\", 'Process')",
            "Start-Process \"$dir\\krew.exe\" -Args 'install krew' -Wait -WindowStyle Hidden"
        ]
    },
    "env_add_path": ".krew\\bin",
    "env_set": {
        "KREW_ROOT": "$dir\\.krew"
    },
    "persist": ".krew",
    "checkver": {
        "github": "https://github.com/kubernetes-sigs/krew"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/kubernetes-sigs/krew/releases/download/v$version/krew.exe"
            }
        },
        "hash": {
            "url": "$url.sha256"
        }
    }
}
