aria2: Include build number in autoupdate URL (#2475)

This commit is contained in:
Mathias Hermansson 2018-08-08 20:32:47 +02:00 committed by Richard Kuhnt
parent 406664ceab
commit c0e65c15c5

View File

@ -2,7 +2,7 @@
"homepage": "https://aria2.github.io/", "homepage": "https://aria2.github.io/",
"description": "Lightweight multi-protocol & multi-source command-line download utility", "description": "Lightweight multi-protocol & multi-source command-line download utility",
"license": "GPL-2.0-or-later", "license": "GPL-2.0-or-later",
"version": "1.34.0", "version": "1.34.0-1",
"architecture": { "architecture": {
"32bit": { "32bit": {
"url": "https://github.com/aria2/aria2/releases/download/release-1.34.0/aria2-1.34.0-win-32bit-build1.zip", "url": "https://github.com/aria2/aria2/releases/download/release-1.34.0/aria2-1.34.0-win-32bit-build1.zip",
@ -16,16 +16,20 @@
} }
}, },
"bin": "aria2c.exe", "bin": "aria2c.exe",
"checkver": "<p>Download <a href=\"https://github.com/aria2/aria2[^\"]+\">version ([^<]+)</a>", "checkver": {
"github": "https://github.com/aria2/aria2",
"re": "/release-(?:[\\d.]+)/aria2-(?<version>[\\d.]+)-win-64bit-build(?<build>[\\d]+).zip",
"replace": "${version}-${build}"
},
"autoupdate": { "autoupdate": {
"architecture": { "architecture": {
"32bit": { "32bit": {
"url": "https://github.com/aria2/aria2/releases/download/release-$version/aria2-$version-win-32bit-build1.zip", "url": "https://github.com/aria2/aria2/releases/download/release-$matchVersion/aria2-$matchVersion-win-32bit-build$matchBuild.zip",
"extract_dir": "aria2-$version-win-32bit-build1" "extract_dir": "aria2-$matchVersion-win-32bit-build$matchBuild"
}, },
"64bit": { "64bit": {
"url": "https://github.com/aria2/aria2/releases/download/release-$version/aria2-$version-win-64bit-build1.zip", "url": "https://github.com/aria2/aria2/releases/download/release-$matchVersion/aria2-$matchVersion-win-64bit-build$matchBuild.zip",
"extract_dir": "aria2-$version-win-64bit-build1" "extract_dir": "aria2-$matchVersion-win-64bit-build$matchBuild"
} }
} }
} }