{
    "version": "2.8.27",
    "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://file-assets.apifox.com/download/2.8.27/Apifox-2.8.27.exe#/dl.7z",
            "hash": "sha512:0d88f1ce81d3c6107d37e3f629e52f29f9952d8e950794ffae6a7cdab867516c00857ab174e9a57bad9fdf3aca42bbd2d97183387c55f18efd473058eda0f4dc"
        }
    },
    "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' -Force -ErrorAction SilentlyContinue",
        "Start-Sleep -Milliseconds 1500"
    ],
    "checkver": {
        "url": "https://docs.apifox.com/changelog.md",
        "regex": "## ([\\d.]+)(?=\\s)"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://file-assets.apifox.com/download/$version/Apifox-$version.exe#/dl.7z",
                "hash": {
                    "url": "$baseurl/latest.yml",
                    "regex": "sha512: $base64"
                }
            }
        }
    }
}
