{
    "version": "1.8.5",
    "description": "Frametimes analysis tool compatible with OCAT",
    "homepage": "https://github.com/CXWorld/CapFrameX",
    "license": "MIT",
    "suggest": {
        "OCAT": "extras/ocat"
    },
    "architecture": {
        "64bit": {
            "url": "https://github.com/CXWorld/CapFrameX/releases/download/v1.8.5/release_1.8.5_portable.zip",
            "hash": "d1b7aabf622b4804ea50a8d5969aa4c2240322942e05be3dc7190003758120b8"
        }
    },
    "pre_install": [
        "# The executable is sometimes nested within a subdirectory of the archive.",
        "$topLevelItems = Get-ChildItem -Path $dir",
        "if (($topLevelItems.Count -eq 1) -and ($topLevelItems[0].PSIsContainer)) {",
        "    $subfolder = $topLevelItems[0].FullName",
        "    Copy-Item -Path \"$subfolder\\*\" -Destination $dir -Recurse",
        "    Remove-Item -Path $subfolder -Recurse -Force",
        "}"
    ],
    "bin": "CapFrameX.exe",
    "shortcuts": [
        [
            "CapFrameX.exe",
            "CapFrameX"
        ]
    ],
    "checkver": {
        "github": "https://api.github.com/repos/CXWorld/CapFrameX/releases",
        "jsonpath": "$[?(@.tag_name =~ /^(?!.*beta).+$/)].tag_name",
        "regex": "(?<tag>v(?<version>[\\d.]+)[^\"]*)"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/CXWorld/CapFrameX/releases/download/$matchTag/release_$version_portable.zip"
            }
        }
    }
}
