mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-05 00:01:20 +00:00
gdisk: Add version 1.0.9 (#4872)
This commit is contained in:
parent
cf8857d6cd
commit
05bdee70e0
28
bucket/gdisk.json
Normal file
28
bucket/gdisk.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user