diff --git a/README.md b/README.md index 0b86f28e..e8519372 100644 --- a/README.md +++ b/README.md @@ -143,13 +143,15 @@ wps | Microsoft.SignalRService/webPubSub ```bash latest_azqr=$(curl -sL https://api.github.com/repos/Azure/azqr/releases/latest | jq -r ".tag_name" | cut -c1-) -wget https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-linux-arm64.zip -O azqr.zip +wget https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-linux-amd64.zip -O azqr.zip unzip -uj -qq azqr.zip rm azqr.zip chmod +x azqr ./azqr --version ``` +> For ARM64 architecture, use `azqr-linux-arm64.zip` instead of `azqr-linux-amd64.zip`. + ### Install on Windows Use `winget`: diff --git a/docs/content/en/docs/Install/_index.md b/docs/content/en/docs/Install/_index.md index ace9d294..8667b364 100644 --- a/docs/content/en/docs/Install/_index.md +++ b/docs/content/en/docs/Install/_index.md @@ -8,10 +8,14 @@ description: Learn how to install Azure Quick Review (azqr) ```bash latest_azqr=$(curl -sL https://api.github.com/repos/Azure/azqr/releases/latest | jq -r ".tag_name" | cut -c1-) -wget https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-ubuntu-latest-amd64 -O azqr +wget https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-linux-amd64.zip -O azqr.zip +unzip -uj -qq azqr.zip +rm azqr.zip chmod +x azqr ``` +> For ARM64 architecture, use `azqr-linux-arm64.zip` instead of `azqr-linux-amd64.zip`. + ## Install on Windows Use `winget`: @@ -24,9 +28,15 @@ or download the executable file: ``` console $latest_azqr=$(iwr https://api.github.com/repos/Azure/azqr/releases/latest).content | convertfrom-json | Select-Object -ExpandProperty tag_name -iwr https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-windows-latest-amd64.exe -OutFile azqr.exe +iwr https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-win-amd64.zip -OutFile azqr.zip +Expand-Archive -Path azqr.zip -DestinationPath ./azqr_bin +Get-ChildItem -Path ./azqr_bin -Recurse -File | ForEach-Object { Move-Item -Path $_.FullName -Destination . -Force } +Remove-Item -Path ./azqr_bin -Recurse -Force +Remove-Item -Path azqr.zip ``` +> For ARM64 architecture, use `azqr-win-arm64.zip` instead of `azqr-win-amd64.zip`. + ## Install on Mac Use `homebrew`: diff --git a/examples/cicd/azdo-pipeline.yml b/examples/cicd/azdo-pipeline.yml index 29ec9ded..99b4f9ab 100644 --- a/examples/cicd/azdo-pipeline.yml +++ b/examples/cicd/azdo-pipeline.yml @@ -26,7 +26,9 @@ pool: steps: - script: | latest_azqr=$(curl -sL https://api.github.com/repos/Azure/azqr/releases/latest | jq -r ".tag_name" | cut -c1-) \ - && wget https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-ubuntu-latest-amd64 -O /usr/local/bin/azqr \ + && wget https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-linux-amd64.zip -O azqr.zip \ + && unzip -uj -qq azqr.zip -d /usr/local/bin \ + && rm azqr.zip \ && chmod +x /usr/local/bin/azqr displayName: "Install azqr" diff --git a/examples/cicd/github-actions.yml b/examples/cicd/github-actions.yml index ad12367d..b474aaf9 100644 --- a/examples/cicd/github-actions.yml +++ b/examples/cicd/github-actions.yml @@ -26,7 +26,9 @@ jobs: - name: Install azqr run: | latestAzqr=$(curl -sL https://api.github.com/repos/Azure/azqr/releases/latest | jq -r ".tag_name" | cut -c1-) \ - && wget https://github.com/Azure/azqr/releases/download/$latestAzqr/azqr-ubuntu-latest-amd64 -O /usr/local/bin/azqr \ + && wget https://github.com/Azure/azqr/releases/download/$latestAzqr/azqr-linux-amd64.zip -O azqr.zip \ + && unzip -uj -qq azqr.zip -d /usr/local/bin \ + && rm azqr.zip \ && chmod +x /usr/local/bin/azqr # Run azqr scan diff --git a/jumpstart_drops/azqr-tutorial/_index.md b/jumpstart_drops/azqr-tutorial/_index.md index 23802739..77b1cdd7 100644 --- a/jumpstart_drops/azqr-tutorial/_index.md +++ b/jumpstart_drops/azqr-tutorial/_index.md @@ -39,7 +39,9 @@ Before you begin the installation, ensure you have the following prerequisites: ```bash latest_azqr=$(curl -sL https://api.github.com/repos/Azure/azqr/releases/latest | jq -r ".tag_name" | cut -c1-) - wget https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-ubuntu-latest-amd64 -O azqr + wget https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-linux-amd64.zip -O azqr.zip + unzip -uj -qq azqr.zip + rm azqr.zip ``` 3. Make the downloaded file executable: @@ -61,7 +63,11 @@ Before you begin the installation, ensure you have the following prerequisites: ```bash $latest_azqr=$(iwr https://api.github.com/repos/Azure/azqr/releases/latest).content | convertfrom-json | Select-Object -ExpandProperty tag_name - iwr https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-windows-latest-amd64.exe -OutFile azqr.exe + iwr https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-win-amd64.zip -OutFile azqr.zip + Expand-Archive -Path azqr.zip -DestinationPath ./azqr_bin + Get-ChildItem -Path ./azqr_bin -Recurse -File | ForEach-Object { Move-Item -Path $_.FullName -Destination . -Force } + Remove-Item -Path ./azqr_bin -Recurse -Force + Remove-Item -Path azqr.zip ``` ### Installation on Mac