mirror of
				https://github.com/ScoopInstaller/Main.git
				synced 2025-11-03 23:31:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			44 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
    "version": "10.17.1",
 | 
						|
    "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/v10.17.1/pnpm-win-x64.exe#/pnpm.exe",
 | 
						|
            "hash": "c050ab19b9fd5888d5bcaf8a3d7308fdbcb0c5d7c8065c98b4091e9dc1f3b0f0"
 | 
						|
        }
 | 
						|
    },
 | 
						|
    "bin": [
 | 
						|
        "pnpm.exe",
 | 
						|
        [
 | 
						|
            "pnpm.exe",
 | 
						|
            "pnpx",
 | 
						|
            "dlx"
 | 
						|
        ]
 | 
						|
    ],
 | 
						|
    "checkver": {
 | 
						|
        "script": [
 | 
						|
            "# Using checkver script to check through all release tags",
 | 
						|
            "$auth = Get-GitHubToken",
 | 
						|
            "$head = @{}",
 | 
						|
            "if($auth) { $head.add('authorization', \"Bearer $auth\") }",
 | 
						|
            "$url = 'https://api.github.com/repositories/50565430/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 -Headers $head $url).Content | ConvertFrom-Json",
 | 
						|
            "$releases | ForEach-Object {",
 | 
						|
            "    if (!($_.tag_name -match '([\\d.]+)')) { return }",
 | 
						|
            "    if ($_.prerelease) { 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'\"; continue }",
 | 
						|
            "Write-Output $latest_ver"
 | 
						|
        ],
 | 
						|
        "regex": "([\\d.]+)"
 | 
						|
    },
 | 
						|
    "autoupdate": {
 | 
						|
        "url": "https://github.com/pnpm/pnpm/releases/download/v$version/pnpm-win-x64.exe#/pnpm.exe"
 | 
						|
    }
 | 
						|
}
 |