(min)git(-busybox): Fix checkver, autoupdate (#4933)

- Use semver
This commit is contained in:
HUMORCE 2023-07-08 13:59:04 +00:00 committed by GitHub
parent 8496c106c8
commit a4779c56da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 30 deletions

View File

@ -1,5 +1,5 @@
{
"version": "2.41.0.windows.1",
"version": "2.41.0.2",
"description": "Distributed version control system",
"homepage": "https://gitforwindows.org",
"license": "GPL-2.0-only",
@ -12,12 +12,12 @@
],
"architecture": {
"64bit": {
"url": "https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.1/PortableGit-2.41.0-64-bit.7z.exe#/dl.7z",
"hash": "fcbaeffd24fdf435a1f7844825253509136377915e6720aa66aa256ec1f83c30"
"url": "https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.2/PortableGit-2.41.0.2-64-bit.7z.exe#/dl.7z",
"hash": "8960ed027f94be7487e0e56c28e0fdaaf7a2dd887c35f84a89179a320a81e830"
},
"32bit": {
"url": "https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.1/PortableGit-2.41.0-32-bit.7z.exe#/dl.7z",
"hash": "12190f5bec59a187ec0368f39dba55a7802706076b91fe400ef5da4247999467"
"url": "https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.2/PortableGit-2.41.0.2-32-bit.7z.exe#/dl.7z",
"hash": "b8411ac95f84cf5cff23f44789a9ee313fc7136a224d06cb7abf94561bb3f68c"
}
},
"post_install": [
@ -60,20 +60,21 @@
"GIT_INSTALL_ROOT": "$dir"
},
"checkver": {
"github": "https://github.com/git-for-windows/git",
"regex": "tag/v([\\d.]+\\.windows\\.\\d)"
"url": "https://api.github.com/repos/git-for-windows/git/releases/latest",
"jsonpath": "$..browser_download_url",
"regex": "download/v(?<tag>[\\d.]+windows\\.\\d)/PortableGit-([\\d.]+)-64"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/git-for-windows/git/releases/download/v$version/PortableGit-$matchHead-64-bit.7z.exe#/dl.7z"
"url": "https://github.com/git-for-windows/git/releases/download/v$matchTag/PortableGit-$version-64-bit.7z.exe#/dl.7z"
},
"32bit": {
"url": "https://github.com/git-for-windows/git/releases/download/v$version/PortableGit-$matchHead-32-bit.7z.exe#/dl.7z"
"url": "https://github.com/git-for-windows/git/releases/download/v$matchTag/PortableGit-$version-32-bit.7z.exe#/dl.7z"
}
},
"hash": {
"url": "https://github.com/git-for-windows/git/releases/tag/v$version",
"url": "https://github.com/git-for-windows/git/releases/tag/v$matchTag",
"regex": "(?s)$basename.*?$sha256"
}
}

View File

@ -1,5 +1,5 @@
{
"version": "2.41.0.windows.1",
"version": "2.41.0.2",
"description": "Minimal Git for Windows (MinGit) is a reduced sized package designed to support application integration (like integrated development environments, graph visualizers, etc.) where full console support (colorization, pagniation, etc.) is not needed.(BusyBox-backed MinGit, experimental, smaller version of MinGit)",
"homepage": "https://git-for-windows.github.io/",
"license": "GPL-2.0-only",
@ -13,12 +13,12 @@
],
"architecture": {
"64bit": {
"url": "https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.1/MinGit-2.41.0-busybox-64-bit.zip",
"hash": "6ca0a62dea4440a9564b93a85f0dd0b3db27e53782b5ade5a82382d7abc1453c"
"url": "https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.2/MinGit-2.41.0.2-busybox-64-bit.zip",
"hash": "8ab102ceba7a62cef25c55564a1b519039885e3de9c57ec9b2ec8d99918ad297"
},
"32bit": {
"url": "https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.1/MinGit-2.41.0-busybox-32-bit.zip",
"hash": "9e069bffb19da682fb80ef1c3d6c98417dd604cc0e2e1c1c7f23c0edd704aec6"
"url": "https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.2/MinGit-2.41.0.2-busybox-32-bit.zip",
"hash": "508a6478dcbaa2bd90347d75d87c9a621fd7baf200762a2a82e77bf5872c7991"
}
},
"bin": [
@ -29,20 +29,21 @@
"GIT_INSTALL_ROOT": "$dir"
},
"checkver": {
"github": "https://github.com/git-for-windows/git",
"regex": "tag/v([\\d.]+\\.windows\\.\\d)"
"url": "https://api.github.com/repos/git-for-windows/git/releases/latest",
"jsonpath": "$..browser_download_url",
"regex": "download/v(?<tag>[\\d.]+windows\\.\\d)/MinGit-([\\d.]+)-busybox-64"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/git-for-windows/git/releases/download/v$version/MinGit-$matchHead-busybox-64-bit.zip"
"url": "https://github.com/git-for-windows/git/releases/download/v$matchTag/MinGit-$version-busybox-64-bit.zip"
},
"32bit": {
"url": "https://github.com/git-for-windows/git/releases/download/v$version/MinGit-$matchHead-busybox-32-bit.zip"
"url": "https://github.com/git-for-windows/git/releases/download/v$matchTag/MinGit-$version-busybox-32-bit.zip"
}
},
"hash": {
"url": "https://github.com/git-for-windows/git/releases/tag/v$version",
"url": "https://github.com/git-for-windows/git/releases/tag/v$matchTag",
"regex": "(?s)$basename.*?$sha256"
}
}

View File

@ -1,5 +1,5 @@
{
"version": "2.41.0.windows.1",
"version": "2.41.0.2",
"description": "Minimal Git for Windows (MinGit) is a reduced sized package designed to support application integration (like integrated development environments, graph visualizers, etc.) where full console support (colorization, pagniation, etc.) is not needed.",
"homepage": "https://git-for-windows.github.io/",
"license": "GPL-2.0-only",
@ -13,12 +13,12 @@
],
"architecture": {
"64bit": {
"url": "https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.1/MinGit-2.41.0-64-bit.zip",
"hash": "c9cffc25e2ef81f51029138678b7bfc538a56095ec0538125dc790a01e20d77a"
"url": "https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.2/MinGit-2.41.0.2-64-bit.zip",
"hash": "06d71967e8f47f82fc2ebf9911d2cf8102221e4e22becb825e2dbec85cc1047e"
},
"32bit": {
"url": "https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.1/MinGit-2.41.0-32-bit.zip",
"hash": "2643d9b1c663258bc5ec966f2b8493884ba3e247a41edc5a1496068a0a0a6ef4"
"url": "https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.2/MinGit-2.41.0.2-32-bit.zip",
"hash": "890d7810725a2698729446143072a3191915638e0925259a2060a96383d06ee2"
}
},
"bin": "cmd\\git.exe",
@ -26,20 +26,21 @@
"GIT_INSTALL_ROOT": "$dir"
},
"checkver": {
"github": "https://github.com/git-for-windows/git",
"regex": "tag/v([\\d.]+\\.windows\\.\\d)"
"url": "https://api.github.com/repos/git-for-windows/git/releases/latest",
"jsonpath": "$..browser_download_url",
"regex": "download/v(?<tag>[\\d.]+windows\\.\\d)/MinGit-([\\d.]+)-64"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/git-for-windows/git/releases/download/v$version/MinGit-$matchHead-64-bit.zip"
"url": "https://github.com/git-for-windows/git/releases/download/v$matchTag/MinGit-$version-64-bit.zip"
},
"32bit": {
"url": "https://github.com/git-for-windows/git/releases/download/v$version/MinGit-$matchHead-32-bit.zip"
"url": "https://github.com/git-for-windows/git/releases/download/v$matchTag/MinGit-$version-32-bit.zip"
}
},
"hash": {
"url": "https://github.com/git-for-windows/git/releases/tag/v$version",
"url": "https://github.com/git-for-windows/git/releases/tag/v$matchTag",
"regex": "(?s)$basename.*?$sha256"
}
}