skywalking-cli: Add version 0.10.0 (#3464)

* swctl: Add version 0.9.0

* Apply suggestions from code review

* Update and rename swctl.json to skywalking-cli.json

Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>
This commit is contained in:
Danny Boisvert 2022-04-14 03:50:54 -04:00 committed by GitHub
parent 466ae62560
commit 1928903c8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,27 @@
{
"version": "0.10.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.10.0/skywalking-cli-0.10.0-bin.tgz",
"hash": "sha512:4247e38dbf8ca3ec25a74c468ef1c93150c15f4c244f85e80923fbe9c6282544dd14bfe9c933955c9bef344c0636bcce9d2be73699c39ede009760f3cc06aa0c",
"extract_dir": "skywalking-cli-0.10.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"
}
}