File tree Expand file tree Collapse file tree 5 files changed +51
-33
lines changed
docs/content/en/docs/Install Expand file tree Collapse file tree 5 files changed +51
-33
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,13 @@ jobs:
145145 CGO_ENABLED : 0
146146 PRODUCT_VERSION : ${{ needs.calculate-version.outputs.version }}
147147
148+ - name : Copy README and LICENSE
149+ run : |
150+ copy README.md bin\windows_amd64\README.md
151+ copy LICENSE bin\windows_amd64\LICENSE
152+ copy README.md bin\windows_arm64\README.md
153+ copy LICENSE bin\windows_arm64\LICENSE
154+
148155 - name : tarball windows binaries
149156 run : |
150157 tar -czf windows-azqr.tar.gz bin/windows_*
@@ -256,12 +263,12 @@ jobs:
256263 - name : Zip (win-amd64)
257264 uses : montudor/action-zip@a8e75c9faefcd80fac3baf53ef40b9b119d5b702 # v1
258265 with :
259- args : zip -qq azqr-win-amd64.zip bin/windows_amd64/azqr.exe
266+ args : zip -qq azqr-win-amd64.zip bin/windows_amd64/azqr.exe bin/windows_amd64/README.md bin/windows_amd64/LICENSE
260267
261268 - name : Zip (win-arm64)
262269 uses : montudor/action-zip@a8e75c9faefcd80fac3baf53ef40b9b119d5b702 # v1
263270 with :
264- args : zip -qq azqr-win-arm64.zip bin/windows_arm64/azqr.exe
271+ args : zip -qq azqr-win-arm64.zip bin/windows_arm64/azqr.exe bin/windows_arm64/README.md bin/windows_arm64/LICENSE
265272
266273 - name : Zip (darwin-amd64)
267274 uses : montudor/action-zip@a8e75c9faefcd80fac3baf53ef40b9b119d5b702 # v1
Original file line number Diff line number Diff line change @@ -142,16 +142,9 @@ wps | Microsoft.SignalRService/webPubSub
142142### Install on Linux or Azure Cloud Shell (Bash)
143143
144144``` bash
145- latest_azqr=$( curl -sL https://api.github.com/repos/Azure/azqr/releases/latest | jq -r " .tag_name" | cut -c1-)
146- wget https://github.com/Azure/azqr/releases/download/$latest_azqr /azqr-linux-amd64.zip -O azqr.zip
147- unzip -uj -qq azqr.zip
148- rm azqr.zip
149- chmod +x azqr
150- ./azqr --version
145+ bash -c " $( curl -fsSL https://raw.githubusercontent.com/azure/azqr/main/scripts/install.sh) "
151146```
152147
153- > For ARM64 architecture, use ` azqr-linux-arm64.zip ` instead of ` azqr-linux-amd64.zip ` .
154-
155148### Install on Windows
156149
157150Use ` winget ` :
@@ -163,13 +156,7 @@ winget install azqr
163156or download the executable file:
164157
165158```
166- $latest_azqr=$(iwr https://api.github.com/repos/Azure/azqr/releases/latest).content | convertfrom-json | Select-Object -ExpandProperty tag_name
167- iwr https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-win-amd64.zip -OutFile azqr.zip
168- Expand-Archive -Path azqr.zip -DestinationPath ./azqr_bin
169- Get-ChildItem -Path ./azqr_bin -Recurse -File | ForEach-Object { Move-Item -Path $_.FullName -Destination . -Force }
170- Remove-Item -Path ./azqr_bin -Recurse -Force
171- Remove-Item -Path azqr.zip
172- .\azqr.exe --version
159+ Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/azure/azqr/main/scripts/install.ps1'))
173160```
174161
175162### Install on Mac
Original file line number Diff line number Diff line change @@ -7,15 +7,9 @@ description: Learn how to install Azure Quick Review (azqr)
77## Install on Linux or Azure Cloud Shell
88
99``` bash
10- latest_azqr=$( curl -sL https://api.github.com/repos/Azure/azqr/releases/latest | jq -r " .tag_name" | cut -c1-)
11- wget https://github.com/Azure/azqr/releases/download/$latest_azqr /azqr-linux-amd64.zip -O azqr.zip
12- unzip -uj -qq azqr.zip
13- rm azqr.zip
14- chmod +x azqr
10+ bash -c " $( curl -fsSL https://raw.githubusercontent.com/azure/azqr/main/scripts/install.sh) "
1511```
1612
17- > For ARM64 architecture, use ` azqr-linux-arm64.zip ` instead of ` azqr-linux-amd64.zip ` .
18-
1913## Install on Windows
2014
2115Use ` winget ` :
@@ -26,16 +20,9 @@ winget install azqr
2620
2721or download the executable file:
2822
29- ``` console
30- $latest_azqr=$(iwr https://api.github.com/repos/Azure/azqr/releases/latest).content | convertfrom-json | Select-Object -ExpandProperty tag_name
31- iwr https://github.com/Azure/azqr/releases/download/$latest_azqr/azqr-win-amd64.zip -OutFile azqr.zip
32- Expand-Archive -Path azqr.zip -DestinationPath ./azqr_bin
33- Get-ChildItem -Path ./azqr_bin -Recurse -File | ForEach-Object { Move-Item -Path $_.FullName -Destination . -Force }
34- Remove-Item -Path ./azqr_bin -Recurse -Force
35- Remove-Item -Path azqr.zip
3623```
37-
38- > For ARM64 architecture, use ` azqr-win-arm64.zip ` instead of ` azqr-win-amd64.zip ` .
24+ Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/azure/azqr/main/scripts/install.ps1'))
25+ ```
3926
4027## Install on Mac
4128
Original file line number Diff line number Diff line change 1+ if ($env: PROCESSOR_ARCHITECTURE -eq " AMD64" ) {
2+ $arch = " amd64"
3+ } elseif ($env: PROCESSOR_ARCHITECTURE -eq " ARM64" ) {
4+ $arch = " arm64"
5+ } else {
6+ Write-Host " Unsupported architecture: $ ( $env: PROCESSOR_ARCHITECTURE ) "
7+ exit
8+ }
9+
10+ $latest_azqr = $ (iwr https:// api.github.com / repos/ Azure/ azqr/ releases/ latest).content | convertfrom-json | Select-Object - ExpandProperty tag_name
11+ iwr https:// github.com / Azure/ azqr/ releases/ download/ $latest_azqr / azqr- win- $arch.zip - OutFile azqr.zip
12+ Expand-Archive - Path azqr.zip - DestinationPath ./ azqr_bin
13+ Get-ChildItem - Path ./ azqr_bin - Recurse - File | ForEach-Object { Move-Item - Path $_.FullName - Destination . - Force }
14+ Remove-Item - Path ./ azqr_bin - Recurse - Force
15+ Remove-Item - Path azqr.zip
16+ .\azqr.exe -- version
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ if ! command -v jq & > /dev/null || ! command -v unzip & > /dev/null || ! command -v wget & > /dev/null
4+ then
5+ echo " jq, unzip or wget could not be found, please install them."
6+ exit
7+ fi
8+
9+ arch=$( uname -m)
10+ if [ " $arch " == " aarch64" ]; then
11+ arch=" arm64"
12+ else
13+ arch=" amd64"
14+ fi
15+
16+ latest_azqr=$( curl -sL https://api.github.com/repos/Azure/azqr/releases/latest | jq -r " .tag_name" | cut -c1-)
17+ wget https://github.com/Azure/azqr/releases/download/$latest_azqr /azqr-linux-$arch .zip -O azqr.zip
18+ unzip -uj -qq azqr.zip
19+ rm azqr.zip
20+ chmod +x azqr
21+ ./azqr --version
You can’t perform that action at this time.
0 commit comments