(min)git: Simplify checkver (#4565)

This commit is contained in:
Hsiao-nan Cheung 2023-03-16 14:58:02 +08:00 committed by GitHub
parent 9caf36f6ca
commit ff6176570d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 12 deletions

View File

@ -61,20 +61,20 @@
}, },
"checkver": { "checkver": {
"github": "https://github.com/git-for-windows/git", "github": "https://github.com/git-for-windows/git",
"regex": "v([\\w.]+)/PortableGit-(?<full>[\\w.]+)-64-bit" "regex": "tag/v([\\d.]+\\.windows\\.\\d)"
}, },
"autoupdate": { "autoupdate": {
"architecture": { "architecture": {
"64bit": { "64bit": {
"url": "https://github.com/git-for-windows/git/releases/download/v$version/PortableGit-$matchFull-64-bit.7z.exe#/dl.7z" "url": "https://github.com/git-for-windows/git/releases/download/v$version/PortableGit-$matchHead-64-bit.7z.exe#/dl.7z"
}, },
"32bit": { "32bit": {
"url": "https://github.com/git-for-windows/git/releases/download/v$version/PortableGit-$matchFull-32-bit.7z.exe#/dl.7z" "url": "https://github.com/git-for-windows/git/releases/download/v$version/PortableGit-$matchHead-32-bit.7z.exe#/dl.7z"
} }
}, },
"hash": { "hash": {
"url": "https://github.com/git-for-windows/git/releases/tag/v$version", "url": "https://github.com/git-for-windows/git/releases/tag/v$version",
"regex": "<td>$basename</td>\\s*<td>$sha256</td>" "regex": "(?s)$basename.*?$sha256"
} }
} }
} }

View File

@ -30,20 +30,20 @@
}, },
"checkver": { "checkver": {
"github": "https://github.com/git-for-windows/git", "github": "https://github.com/git-for-windows/git",
"regex": "v([\\w.]+)/MinGit-(?<full>[\\w.]+)-64-bit" "regex": "tag/v([\\d.]+\\.windows\\.\\d)"
}, },
"autoupdate": { "autoupdate": {
"architecture": { "architecture": {
"64bit": { "64bit": {
"url": "https://github.com/git-for-windows/git/releases/download/v$version/MinGit-$matchFull-busybox-64-bit.zip" "url": "https://github.com/git-for-windows/git/releases/download/v$version/MinGit-$matchHead-busybox-64-bit.zip"
}, },
"32bit": { "32bit": {
"url": "https://github.com/git-for-windows/git/releases/download/v$version/MinGit-$matchFull-busybox-32-bit.zip" "url": "https://github.com/git-for-windows/git/releases/download/v$version/MinGit-$matchHead-busybox-32-bit.zip"
} }
}, },
"hash": { "hash": {
"url": "https://github.com/git-for-windows/git/releases/tag/v$version", "url": "https://github.com/git-for-windows/git/releases/tag/v$version",
"regex": "<td>$basename</td>\\s*<td>$sha256</td>" "regex": "(?s)$basename.*?$sha256"
} }
} }
} }

View File

@ -27,20 +27,20 @@
}, },
"checkver": { "checkver": {
"github": "https://github.com/git-for-windows/git", "github": "https://github.com/git-for-windows/git",
"regex": "v([\\w.]+)/MinGit-(?<full>[\\w.]+)-64-bit" "regex": "tag/v([\\d.]+\\.windows\\.\\d)"
}, },
"autoupdate": { "autoupdate": {
"architecture": { "architecture": {
"64bit": { "64bit": {
"url": "https://github.com/git-for-windows/git/releases/download/v$version/MinGit-$matchFull-64-bit.zip" "url": "https://github.com/git-for-windows/git/releases/download/v$version/MinGit-$matchHead-64-bit.zip"
}, },
"32bit": { "32bit": {
"url": "https://github.com/git-for-windows/git/releases/download/v$version/MinGit-$matchFull-32-bit.zip" "url": "https://github.com/git-for-windows/git/releases/download/v$version/MinGit-$matchHead-32-bit.zip"
} }
}, },
"hash": { "hash": {
"url": "https://github.com/git-for-windows/git/releases/tag/v$version", "url": "https://github.com/git-for-windows/git/releases/tag/v$version",
"regex": "<td>$basename</td>\\s*<td>$sha256</td>" "regex": "(?s)$basename.*?$sha256"
} }
} }
} }