gdisk: Add version 1.0.9 (#4872)

This commit is contained in:
Brian 2023-08-31 06:04:41 -04:00 committed by GitHub
parent cf8857d6cd
commit 05bdee70e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

28
bucket/gdisk.json Normal file
View File

@ -0,0 +1,28 @@
{
"version": "1.0.9",
"description": "GPT fdisk is a disk partitioning tool loosely modeled on Linux fdisk, but used for modifying GUID Partition Table (GPT) disks.",
"homepage": "https://sourceforge.net/projects/gptfdisk/",
"license": "GPL-2.0-only",
"url": "https://downloads.sourceforge.net/project/gptfdisk/gptfdisk/1.0.9/gdisk-binaries/gdisk-windows-1.0.9.zip",
"hash": "sha1:0f0f124fb4531ee7fb34cbcef46260574b4c9b13",
"pre_install": [
"$arch = if ($architecture -eq '32bit') { $architecture.Substring(0, 2) } else { '64' }",
"$rename = [System.Collections.ArrayList]::new()",
"$remove = [System.Collections.ArrayList]::new()",
"Get-ChildItem \"$dir\" | ForEach-Object { if ($_ -clike \"*$arch.exe\") { $rename.Add($_) } else { $remove.Add($_) } } | Out-Null",
"Remove-Item -Recurse $remove",
"$rename | Rename-Item -NewName { $_.name.Replace($arch, '') }"
],
"bin": [
"gdisk.exe",
"sgdisk.exe",
"cgdisk.exe"
],
"checkver": {
"sourceforge": "gptfdisk",
"regex": "gdisk-windows-([\\d.]+)\\.zip"
},
"autoupdate": {
"url": "https://downloads.sourceforge.net/project/gptfdisk/gptfdisk/$version/gdisk-binaries/gdisk-windows-$version.zip"
}
}