mirror of
				https://github.com/ScoopInstaller/Main.git
				synced 2025-10-31 13:51:18 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
| {
 | |
|     "version": "1.0.10",
 | |
|     "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.10/gdisk-binaries/gdisk-windows-1.0.10.zip",
 | |
|     "hash": "sha1:eb6be12d1af21ea5c1bdfe8cdad649cc88692048",
 | |
|     "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($_.FullName) } } | 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"
 | |
|     }
 | |
| }
 | 
![github-actions[bot]](/assets/img/avatar_default.png)