From c0e65c15c57bb60df109c31ba6328cded97d00da Mon Sep 17 00:00:00 2001 From: Mathias Hermansson Date: Wed, 8 Aug 2018 20:32:47 +0200 Subject: [PATCH] aria2: Include build number in autoupdate URL (#2475) --- aria2.json | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/aria2.json b/aria2.json index c5c010e1b5..95bf37791f 100644 --- a/aria2.json +++ b/aria2.json @@ -2,7 +2,7 @@ "homepage": "https://aria2.github.io/", "description": "Lightweight multi-protocol & multi-source command-line download utility", "license": "GPL-2.0-or-later", - "version": "1.34.0", + "version": "1.34.0-1", "architecture": { "32bit": { "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", - "checkver": "

Download version ([^<]+)", + "checkver": { + "github": "https://github.com/aria2/aria2", + "re": "/release-(?:[\\d.]+)/aria2-(?[\\d.]+)-win-64bit-build(?[\\d]+).zip", + "replace": "${version}-${build}" + }, "autoupdate": { "architecture": { "32bit": { - "url": "https://github.com/aria2/aria2/releases/download/release-$version/aria2-$version-win-32bit-build1.zip", - "extract_dir": "aria2-$version-win-32bit-build1" + "url": "https://github.com/aria2/aria2/releases/download/release-$matchVersion/aria2-$matchVersion-win-32bit-build$matchBuild.zip", + "extract_dir": "aria2-$matchVersion-win-32bit-build$matchBuild" }, "64bit": { - "url": "https://github.com/aria2/aria2/releases/download/release-$version/aria2-$version-win-64bit-build1.zip", - "extract_dir": "aria2-$version-win-64bit-build1" + "url": "https://github.com/aria2/aria2/releases/download/release-$matchVersion/aria2-$matchVersion-win-64bit-build$matchBuild.zip", + "extract_dir": "aria2-$matchVersion-win-64bit-build$matchBuild" } } }