mirror of
				https://github.com/ScoopInstaller/Main.git
				synced 2025-11-04 07:41:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
    "version": "7.13.4",
 | 
						|
    "description": "A fast and disk space efficient Node package manager.",
 | 
						|
    "homepage": "https://pnpm.io/",
 | 
						|
    "license": "MIT",
 | 
						|
    "architecture": {
 | 
						|
        "64bit": {
 | 
						|
            "url": "https://github.com/pnpm/pnpm/releases/download/v7.13.4/pnpm-win-x64.exe#/pnpm.exe",
 | 
						|
            "hash": "c7ae9e70854beb89bdb88a343e81c4d4e56178c20bb271bb3b1d03e7d7413ec0"
 | 
						|
        }
 | 
						|
    },
 | 
						|
    "bin": "pnpm.exe",
 | 
						|
    "checkver": {
 | 
						|
        "script": [
 | 
						|
            "# Using checkver script to check through all release tags",
 | 
						|
            "$url = 'https://api.github.com/repos/pnpm/pnpm/releases'",
 | 
						|
            "$latest_ver = [Version]::new(0,0,0,0) # note: Powershell 5 does not support casting 'int' or 'float' to 'System.Version'",
 | 
						|
            "$releases = $(Invoke-WebRequest $url).Content | ConvertFrom-Json",
 | 
						|
            "$releases | ForEach-Object {",
 | 
						|
            "    if (!($_.tag_name -match '([\\d.]+)')) { return }",
 | 
						|
            "    $ver = [Version]::new($matches[1])",
 | 
						|
            "    if ($ver -gt $latest_ver) { $latest_ver = $ver }",
 | 
						|
            "}",
 | 
						|
            "if ($latest_ver -eq [Version]::new(0,0,0,0)) { error \"Could not match version string in '$url'\"; break }",
 | 
						|
            "Write-Output $latest_ver"
 | 
						|
        ],
 | 
						|
        "regex": "([\\d.]+)"
 | 
						|
    },
 | 
						|
    "autoupdate": {
 | 
						|
        "url": "https://github.com/pnpm/pnpm/releases/download/v$version/pnpm-win-x64.exe#/pnpm.exe"
 | 
						|
    }
 | 
						|
}
 |