ScoopInstaller_Main/bucket/azure-cli.json
Olav Rønnestad Birkeland 9245cd0239
azure-cli: Update manifest (#6007)
* Improve uninstall purge logic
* Download faster from GitHub releases
* Autoupdate hash extraction

---------

Co-authored-by: HUMORCE <humorce@outlook.com>
2025-07-05 16:27:41 +00:00

63 lines
2.4 KiB
JSON

{
"version": "2.75.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.75.0/azure-cli-2.75.0-x64.zip",
"hash": "4752e9e00fb1c9e53e94c521aa4ff5e7f60c07bfe21319fc0be2a2f58dc458ed"
}
},
"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"
}
}
}