{
    "version": "2.5.3",
    "description": "All-in-one collaboration platform for API documentation, API debugging, API Mock and API test automation.",
    "homepage": "https://apifox.com",
    "license": "Freeware",
    "architecture": {
        "64bit": {
            "url": "https://cdn.apifox.cn/download/2.5.3/Apifox-2.5.3.exe#/dl.7z",
            "hash": "sha512:c97958d7f1ef9643e30b2a4e665a692b55fe13c46dafdc46656c3e145220d4f8558530aca92340cab4616a08ea7bcc65d4406e2c642df19fdb9e113875d5fd72"
        }
    },
    "pre_install": [
        "Get-Item \"$dir\\`$PLUGINSDIR\\app*.7z\" | Expand-7zipArchive -DestinationPath \"$dir\"",
        "Remove-Item \"$dir\\`$*\", \"$dir\\Uninstall*\" -Force -Recurse"
    ],
    "shortcuts": [
        [
            "Apifox.exe",
            "Apifox",
            "--user-data-dir=\"$dir\\UserData\""
        ]
    ],
    "persist": "UserData",
    "pre_uninstall": [
        "Stop-Process -Name 'ApifoxAppAgent' -ErrorAction SilentlyContinue",
        "Wait-Process -Name 'ApifoxAppAgent' -ErrorAction SilentlyContinue -Timeout 30"
    ],
    "checkver": {
        "url": "https://apifox.com/help/app/changelog",
        "regex": ">([\\d.]+)<"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://cdn.apifox.cn/download/$version/Apifox-$version.exe#/dl.7z",
                "hash": {
                    "url": "$baseurl/latest.yml",
                    "regex": "sha512: $base64"
                }
            }
        }
    }
}
