mirror of
				https://github.com/ScoopInstaller/Main.git
				synced 2025-11-04 07:41:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			63 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			63 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
    "version": "2.77.0",
 | 
						|
    "description": "A cross-platform command-line tool to connect to Azure and execute administrative commands on Azure resources",
 | 
						|
    "homepage": "https://aka.ms/cli",
 | 
						|
    "license": "MIT",
 | 
						|
    "notes": "Extraction can fail due to long paths: https://github.com/ScoopInstaller/Main/issues/5300",
 | 
						|
    "architecture": {
 | 
						|
        "64bit": {
 | 
						|
            "url": "https://github.com/Azure/azure-cli/releases/download/azure-cli-2.77.0/azure-cli-2.77.0-x64.zip",
 | 
						|
            "hash": "f6f8ec9b95cf44ee8703b2e03e7aad70e6fa76e57e630df79def8bef465f37cd"
 | 
						|
        }
 | 
						|
    },
 | 
						|
    "env_set": {
 | 
						|
        "AZURE_CLI_PATH": "$dir\\bin",
 | 
						|
        "AzureCLIPath": "$dir\\bin"
 | 
						|
    },
 | 
						|
    "bin": "bin\\az.cmd",
 | 
						|
    "pre_uninstall": [
 | 
						|
        "if ($purge -and [bool]$(Try{$null = Get-Command -Name 'az' 2>$null; $?}Catch{$false})) {",
 | 
						|
        "    Start-Process -FilePath 'az' -ArgumentList 'account', 'clear' -NoNewWindow -Wait",
 | 
						|
        "}"
 | 
						|
    ],
 | 
						|
    "post_uninstall": [
 | 
						|
        "if ($purge) {",
 | 
						|
        "    $Directories = [string[]](",
 | 
						|
        "        ('{0}\\.azure\\cliextensions' -f $env:USERPROFILE),",
 | 
						|
        "        ('{0}\\.azure\\commands' -f $env:USERPROFILE)",
 | 
						|
        "    )",
 | 
						|
        "    $Directories.ForEach{",
 | 
						|
        "        if ([System.IO.Directory]::Exists($_)) {",
 | 
						|
        "            $null = [System.IO.Directory]::Delete($_,$true)",
 | 
						|
        "        }",
 | 
						|
        "    }",
 | 
						|
        "    $Files = [string[]](",
 | 
						|
        "        ('{0}\\.azure\\commandIndex.json' -f $env:USERPROFILE),",
 | 
						|
        "        ('{0}\\.azure\\config' -f $env:USERPROFILE),",
 | 
						|
        "        ('{0}\\.azure\\extensionCommandTree.json' -f $env:USERPROFILE),",
 | 
						|
        "        ('{0}\\.azure\\versionCheck.json' -f $env:USERPROFILE)",
 | 
						|
        "    )",
 | 
						|
        "    $Files.ForEach{",
 | 
						|
        "       if ([System.IO.File]::Exists($_)) {",
 | 
						|
        "           $null = [System.IO.File]::Delete($_)",
 | 
						|
        "       }",
 | 
						|
        "    }",
 | 
						|
        "}"
 | 
						|
    ],
 | 
						|
    "checkver": {
 | 
						|
        "github": "https://github.com/Azure/azure-cli",
 | 
						|
        "regex": "/releases/tag/azure-cli-([\\d.]+)"
 | 
						|
    },
 | 
						|
    "autoupdate": {
 | 
						|
        "architecture": {
 | 
						|
            "64bit": {
 | 
						|
                "url": "https://github.com/Azure/azure-cli/releases/download/azure-cli-$version/azure-cli-$version-x64.zip"
 | 
						|
            }
 | 
						|
        },
 | 
						|
        "hash": {
 | 
						|
            "url": "https://github.com/Azure/azure-cli/releases/tag/azure-cli-$version",
 | 
						|
            "regex": "$sha256.*?$basename"
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |