rclone: Use downloads.rclone.org, add hash extraction and description (#3108)

- Add `description`
- Use download urls in `downloads.rclone.org` (main site)
- Use version file in download site to `checkver`
- Add `autoupdate.hash`
This commit is contained in:
Hsiao-nan Cheung 2019-02-11 17:47:59 +08:00 committed by Richard Kuhnt
parent 611d57b6e2
commit cd5211678b

View File

@ -1,33 +1,38 @@
{ {
"homepage": "https://rclone.org", "homepage": "https://rclone.org",
"description": "rsync for cloud storage",
"version": "1.46", "version": "1.46",
"license": "MIT", "license": "MIT",
"architecture": { "architecture": {
"64bit": { "64bit": {
"url": "https://github.com/ncw/rclone/releases/download/v1.46/rclone-v1.46-windows-amd64.zip", "url": "https://downloads.rclone.org/v1.46/rclone-v1.46-windows-amd64.zip",
"hash": "1ac2930725ddb9c3d22c7ed677a4c1d3c5358972ef38d5f1a33486dc5c64be6b", "hash": "1ac2930725ddb9c3d22c7ed677a4c1d3c5358972ef38d5f1a33486dc5c64be6b",
"extract_dir": "rclone-v1.46-windows-amd64" "extract_dir": "rclone-v1.46-windows-amd64"
}, },
"32bit": { "32bit": {
"url": "https://github.com/ncw/rclone/releases/download/v1.46/rclone-v1.46-windows-386.zip", "url": "https://downloads.rclone.org/v1.46/rclone-v1.46-windows-386.zip",
"hash": "3b706a692d8a8e6260d09a33fda350b369e7c71a85ca822f4ab071eac79fc4fe", "hash": "3b706a692d8a8e6260d09a33fda350b369e7c71a85ca822f4ab071eac79fc4fe",
"extract_dir": "rclone-v1.46-windows-386" "extract_dir": "rclone-v1.46-windows-386"
} }
}, },
"bin": "rclone.exe", "bin": "rclone.exe",
"checkver": { "checkver": {
"github": "https://github.com/ncw/rclone" "url": "https://downloads.rclone.org/version.txt",
"regex": "rclone v(.+)"
}, },
"autoupdate": { "autoupdate": {
"architecture": { "architecture": {
"64bit": { "64bit": {
"url": "https://github.com/ncw/rclone/releases/download/v$version/rclone-v$version-windows-amd64.zip", "url": "https://downloads.rclone.org/v$version/rclone-v$version-windows-amd64.zip",
"extract_dir": "rclone-v$version-windows-amd64" "extract_dir": "rclone-v$version-windows-amd64"
}, },
"32bit": { "32bit": {
"url": "https://github.com/ncw/rclone/releases/download/v$version/rclone-v$version-windows-386.zip", "url": "https://downloads.rclone.org/v$version/rclone-v$version-windows-386.zip",
"extract_dir": "rclone-v$version-windows-386" "extract_dir": "rclone-v$version-windows-386"
} }
},
"hash": {
"url": "$baseurl/SHA256SUMS"
} }
} }
} }