mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-12-17 12:51:19 +00:00
dfu-util: Add version 0.11 (#4417)
* dfu-util: Add version 0.11 * dfu-util: Add arm64 fallback to x64 * dfu-util: Use static bins
This commit is contained in:
parent
e917da7c8f
commit
bef863bdce
29
bucket/dfu-util.json
Normal file
29
bucket/dfu-util.json
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"version": "0.11",
|
||||||
|
"description": "DFU is intended to download and upload firmware to/from devices connected over USB",
|
||||||
|
"license": "GPL-2.0-only",
|
||||||
|
"homepage": "https://dfu-util.sourceforge.net/",
|
||||||
|
"url": "https://dfu-util.sourceforge.net/releases/dfu-util-0.11-binaries.tar.xz",
|
||||||
|
"hash": "6450de30a7dcd8d8c1273f43f0b153f054fd24d85f7f38296b1ad8edbd2ddb25",
|
||||||
|
"pre_install": [
|
||||||
|
"$arch = if ($architecture -eq 'arm64') { '64' } else { $architecture.Substring(0, 2) }",
|
||||||
|
"$path = \"$dir\\dfu-util-$version-binaries\"",
|
||||||
|
"Move-Item (Get-ChildItem \"$path\\win$arch\" | Where-Object { $_.Name -match '-(?:static|(?:pre|suf)fix)\\.exe\\Z' }) \"$dir\"",
|
||||||
|
"Get-ChildItem \"$dir\\*-static.exe\" | Rename-Item -NewName { $_.Name -replace '-static' }",
|
||||||
|
"Remove-Item -Recurse $path"
|
||||||
|
],
|
||||||
|
"bin": [
|
||||||
|
"dfu-prefix.exe",
|
||||||
|
"dfu-suffix.exe",
|
||||||
|
"dfu-util.exe",
|
||||||
|
"lsusb.exe"
|
||||||
|
],
|
||||||
|
"checkver": {
|
||||||
|
"url": "https://gitlab.com/api/v4/projects/188452/repository/tags",
|
||||||
|
"jsonpath": "$.[0].name",
|
||||||
|
"regex": "v([\\w.-]+)"
|
||||||
|
},
|
||||||
|
"autoupdate": {
|
||||||
|
"url": "https://dfu-util.sourceforge.net/releases/dfu-util-$version-binaries.tar.xz"
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user