{
    "version": "0.13.0",
    "description": "SkyWalking CLI is a command interaction tool for the SkyWalking user or OPS team",
    "homepage": "https://skywalking.apache.org/",
    "license": "Apache-2.0",
    "url": "https://downloads.apache.org/skywalking/cli/0.13.0/skywalking-cli-0.13.0-bin.tgz",
    "hash": "sha512:474bd32e5b3e6ad073238715151670df44173e5cfcd5a88ff29259b4a12a751e36310af42b4b61b2352dcf4131ebfb6ea74379190399f3b6630236d7bdc0f1d5",
    "extract_dir": "skywalking-cli-0.13.0-bin",
    "bin": "bin\\swctl.exe",
    "pre_install": [
        "$bin_name = if ($architecture -eq '64bit') {'amd64'} else {'386'}",
        "Rename-Item \"$dir\\bin\\swctl-$version-windows-$bin_name\" \"swctl.exe\"",
        "Remove-Item \"$dir\\bin\\swctl-*\"",
        "Get-ChildItem -Path \"$dir\" \"._*\" -Recurse | Remove-Item"
    ],
    "checkver": {
        "url": "https://downloads.apache.org/skywalking/cli/",
        "regex": "(?sm)<a\\s+href\\=\\\"(?:[\\d.]+)\\/\\\">\\s*([\\d.]+)\\/?<\\/a>"
    },
    "autoupdate": {
        "url": "https://downloads.apache.org/skywalking/cli/$version/skywalking-cli-$version-bin.tgz",
        "hash": {
            "url": "$url.sha512"
        },
        "extract_dir": "skywalking-cli-$version-bin"
    }
}
