ScoopInstaller_Main/bucket/dfu-util.json
Brian bef863bdce
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
2023-02-05 00:28:44 +05:30

30 lines
1.2 KiB
JSON

{
"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"
}
}