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