ScoopInstaller_Main/bucket/azure-cli.json
2025-10-14 04:29:43 +00:00

63 lines
2.4 KiB
JSON

{
"version": "2.78.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.78.0/azure-cli-2.78.0-x64.zip",
"hash": "37918233a753986e698ab3b2993b97a17b4458d24c2af94c05be5fa9042874ed"
}
},
"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"
}
}
}