diff --git a/drone.json b/drone.json new file mode 100644 index 0000000000..1443533625 --- /dev/null +++ b/drone.json @@ -0,0 +1,19 @@ +{ + "homepage": "https://drone.io/", + "version": "0.7.0", + "license": "Apache License 2.0", + "url": "https://github.com/drone/drone-cli/releases/download/v0.7.0/drone_windows_amd64.tar.gz", + "hash": "9697342cfa69fda5f0612c840d88e1e523e782550633f696853d588407abac60", + "bin": "drone.exe", + "pre_install": "if(Test-Path \"$dir\\drone\") { Rename-Item \"$dir\\drone\" \"$dir\\drone.exe\" }", + "checkver": { + "github": "https://github.com/drone/drone-cli" + }, + "autoupdate": { + "url": "https://github.com/drone/drone-cli/releases/download/v$version/drone_windows_amd64.tar.gz", + "hash": { + "url": "$baseurl/drone_checksums.txt", + "find": "([a-fA-F0-9]+)\\s+(?:\\./|\\*)?(?:release/$basename)" + } + } +}