{
    "version": "0.91.1",
    "description": "This plugin adds Everything search results to PowerToys Run.",
    "homepage": "https://github.com/lin-ycv/EverythingPowerToys",
    "license": "EPL-2.0",
    "suggest": {
        "Everything": [
            "everything",
            "versions/everything-alpha"
        ],
        "PowerToys": "powertoys"
    },
    "architecture": {
        "64bit": {
            "url": "https://github.com/lin-ycv/EverythingPowerToys/releases/download/v0.91.1/EverythingPT-0.91.1-x64.zip",
            "hash": "1ab45af0a4e8c39dd355a7264629911ab14ab12f3231a49849a69c0570de8790"
        },
        "arm64": {
            "url": "https://github.com/lin-ycv/EverythingPowerToys/releases/download/v0.91.1/EverythingPT-0.91.1-ARM64.zip",
            "hash": "84c01f76b15fbe7bd6b9681f683c37ee6506512daae6ec89d6d2bf3ae3377170"
        }
    },
    "post_install": "New-Item -ItemType Junction -Path \"$env:LOCALAPPDATA\\Microsoft\\PowerToys\\PowerToys Run\\Plugins\\Everything\" -Target \"$dir\\Everything\" | Out-Null",
    "pre_uninstall": [
        "if (!(Get-Process powertoys -ErrorAction Ignore)) {",
        "  Remove-Item \"$env:LOCALAPPDATA\\Microsoft\\PowerToys\\PowerToys Run\\Plugins\\Everything\" -ErrorAction Stop",
        "} else {",
        "  abort 'PowerToys is still running, please close it before uninstalling everything-powertoys'",
        "}"
    ],
    "checkver": "github",
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/lin-ycv/EverythingPowerToys/releases/download/v$version/EverythingPT-$version-x64.zip",
                "hash": {
                    "url": "https://github.com/lin-ycv/EverythingPowerToys/releases/tag/v$version",
                    "regex": "(?s)x64-ZIP.*?$sha256"
                }
            },
            "arm64": {
                "url": "https://github.com/lin-ycv/EverythingPowerToys/releases/download/v$version/EverythingPT-$version-ARM64.zip",
                "hash": {
                    "url": "https://github.com/lin-ycv/EverythingPowerToys/releases/tag/v$version",
                    "regex": "(?s)ARM64-ZIP.*?$sha256"
                }
            }
        }
    }
}
