{
    "version": "1.22.2",
    "description": "Kubernates container management tool that can build, push, and pull images and run containers.",
    "homepage": "https://rancherdesktop.io/",
    "license": "Apache-2.0",
    "notes": [
        "Rancher Desktop requires WSL (Windows Subsystem for Linux) to work properly.",
        "Learn more about WSL: https://aka.ms/wsl2"
    ],
    "architecture": {
        "64bit": {
            "url": "https://github.com/rancher-sandbox/rancher-desktop/releases/download/v1.22.2/Rancher.Desktop.Setup.1.22.2.msi",
            "hash": "sha512:dd2a7fa2ad13079b3ca9464870908aacec169ef1ef7c60709e1932530b9e4384062d7895ba64bc94b1d6620b23ea434631be31afc7f16d131b16b95527876b55"
        }
    },
    "extract_dir": "Rancher Desktop",
    "env_add_path": [
        "resources\\resources\\win32\\bin",
        "resources\\resources\\linux\\bin"
    ],
    "post_install": [
        "# Rancher Desktop can't be started from a symlinked directory. See: https://github.com/ScoopInstaller/Extras/issues/14691",
        "startmenu_shortcut \"$original_dir\\Rancher Desktop.exe\" 'Rancher Desktop' $null $null $global"
    ],
    "post_uninstall": [
        "# Remove shortcut",
        "Write-Host \"Removing shortcut $(friendly_path \"$(shortcut_folder $global)\\Rancher Desktop.lnk\")\"",
        "Remove-Item \"$(shortcut_folder $global)\\Rancher Desktop.lnk\" -Force -ErrorAction SilentlyContinue"
    ],
    "checkver": {
        "github": "https://github.com/rancher-sandbox/rancher-desktop"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/rancher-sandbox/rancher-desktop/releases/download/v$version/Rancher.Desktop.Setup.$version.msi",
                "hash": {
                    "url": "$url.sha512sum"
                }
            }
        }
    }
}
