Skip to content

Commit

Permalink
chore: fix download urls for loft CLI
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Zaniewski <[email protected]>
  • Loading branch information
Piotr1215 committed Nov 8, 2024
1 parent be7f5df commit fedf73a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions docs/pages/cli/_partials/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,36 +27,36 @@ yarn global add loft.sh
<TabItem value="mac">

```bash
curl -L -o loft "https://github.com/loft-sh/loft/releases/latest/download/loft-darwin-amd64" && sudo install -c -m 0755 loft /usr/local/bin
curl -L -o loft "https://github.com/loft-sh/loft/releases/download/v3.4.9/loft-darwin-amd64" && sudo install -c -m 0755 loft /usr/local/bin
```

</TabItem>
<TabItem value="mac-arm">

```bash
curl -L -o loft "https://github.com/loft-sh/loft/releases/latest/download/loft-darwin-arm64" && sudo install -c -m 0755 loft /usr/local/bin
curl -L -o loft "https://github.com/loft-sh/loft/releases/download/v3.4.9/loft-darwin-arm64" && sudo install -c -m 0755 loft /usr/local/bin
```

</TabItem>
<TabItem value="linux">

```bash
curl -L -o loft "https://github.com/loft-sh/loft/releases/latest/download/loft-linux-amd64" && sudo install -c -m 0755 loft /usr/local/bin
curl -L -o loft "https://github.com/loft-sh/loft/releases/download/v3.4.9/loft-linux-amd64" && sudo install -c -m 0755 loft /usr/local/bin
```

</TabItem>
<TabItem value="linux-arm">

```bash
curl -L -o loft "https://github.com/loft-sh/loft/releases/latest/download/loft-linux-arm64" && sudo install -c -m 0755 loft /usr/local/bin
curl -L -o loft "https://github.com/loft-sh/loft/releases/download/v3.4.9/loft-linux-arm64" && sudo install -c -m 0755 loft /usr/local/bin
```

</TabItem>
<TabItem value="windows">

```powershell {4}
md -Force "$Env:APPDATA\loft"; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls,Tls11,Tls12';
Invoke-WebRequest -URI "https://github.com/loft-sh/loft/releases/latest/download/loft-windows-amd64.exe" -o $Env:APPDATA\loft\loft.exe;
Invoke-WebRequest -URI "https://github.com/loft-sh/loft/releases/download/v3.4.9/loft-windows-amd64.exe" -o $Env:APPDATA\loft\loft.exe;
$env:Path += ";" + $Env:APPDATA + "\loft";
[Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::User);
```
Expand Down
10 changes: 5 additions & 5 deletions docs/versioned_docs/version-3.4/cli/_partials/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,36 +27,36 @@ yarn global add loft.sh
<TabItem value="mac">

```bash
curl -L -o loft "https://github.com/loft-sh/loft/releases/latest/download/loft-darwin-amd64" && sudo install -c -m 0755 loft /usr/local/bin
curl -L -o loft "https://github.com/loft-sh/loft/releases/download/v3.4.9/loft-darwin-amd64" && sudo install -c -m 0755 loft /usr/local/bin
```

</TabItem>
<TabItem value="mac-arm">

```bash
curl -L -o loft "https://github.com/loft-sh/loft/releases/latest/download/loft-darwin-arm64" && sudo install -c -m 0755 loft /usr/local/bin
curl -L -o loft "https://github.com/loft-sh/loft/releases/download/v3.4.9/loft-darwin-arm64" && sudo install -c -m 0755 loft /usr/local/bin
```

</TabItem>
<TabItem value="linux">

```bash
curl -L -o loft "https://github.com/loft-sh/loft/releases/latest/download/loft-linux-amd64" && sudo install -c -m 0755 loft /usr/local/bin
curl -L -o loft "https://github.com/loft-sh/loft/releases/download/v3.4.9/loft-linux-amd64" && sudo install -c -m 0755 loft /usr/local/bin
```

</TabItem>
<TabItem value="linux-arm">

```bash
curl -L -o loft "https://github.com/loft-sh/loft/releases/latest/download/loft-linux-arm64" && sudo install -c -m 0755 loft /usr/local/bin
curl -L -o loft "https://github.com/loft-sh/loft/releases/download/v3.4.9/loft-linux-arm64" && sudo install -c -m 0755 loft /usr/local/bin
```

</TabItem>
<TabItem value="windows">

```powershell {4}
md -Force "$Env:APPDATA\loft"; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls,Tls11,Tls12';
Invoke-WebRequest -URI "https://github.com/loft-sh/loft/releases/latest/download/loft-windows-amd64.exe" -o $Env:APPDATA\loft\loft.exe;
Invoke-WebRequest -URI "https://github.com/loft-sh/loft/releases/download/v3.4.9/loft-windows-amd64.exe" -o $Env:APPDATA\loft\loft.exe;
$env:Path += ";" + $Env:APPDATA + "\loft";
[Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::User);
```
Expand Down

0 comments on commit fedf73a

Please sign in to comment.