Skip to content

Commit 5f2ad7a

Browse files
committed
Change windows install script
1 parent f556d9c commit 5f2ad7a

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,25 @@ This demo shows how to run `devspace up` directly from the terminal inside Visua
2626
These commands will install the DevSpace CLI and add it to the PATH environment variable. For more details, see: [Install Guide](https://devspace.covexo.com/docs/getting-started/installation.html)
2727

2828
### For Windows
29-
1. Open CMD with **admin rights**.
29+
1. Open Powershell with **admin rights**.
3030
2. Run this install script:
31-
```cmd
32-
curl -s "https://raw.githubusercontent.com/covexo/devspace/master/scripts/installer-win.bat" >"%Temp%\install-devspace.bat"
33-
"%Temp%\install-devspace.bat" "%PROGRAMFILES%\devspace"
34-
del "%Temp%\install-devspace.bat"
31+
```powershell
32+
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls,Tls11,Tls12'
33+
mkdir "$Env:Programfiles\devspace"
34+
wget ((Invoke-WebRequest -URI "https://api.github.com/repos/covexo/devspace/releases/latest").Content -replace ".`"(https://github.com[^`"]*devspace-windows-amd64.exe)`".","`$1") -o $Env:Programfiles\devspace\devspace.exe
35+
& "$Env:Programfiles\devspace\devspace.exe" "install"
3536
```
3637

3738
**Note:** After running the install script, you should close and re-open your terminal window or IDE to refresh the environment variables.
3839

3940
### For Linux
4041
```bash
41-
curl --silent "https://api.github.com/repos/covexo/devspace/releases/latest" | sed -nE 's!.*"(https://github.com[^"]*devspace-linux-amd64)".*!\1!p' | xargs -n 1 curl -L -o devspace && chmod +x devspace && sudo mv devspace /usr/local/bin
42+
curl -s -H "Accept: application/json" "https://api.github.com/repos/covexo/devspace/releases/latest" | sed -nE 's!.*"(https://github.com[^"]*devspace-linux-amd64)".*!\1!p' | xargs -n 1 curl -L -o devspace && chmod +x devspace && sudo mv devspace /usr/local/bin
4243
```
4344

4445
### For Mac
4546
```bash
46-
curl -s -H "Accept: application/json" "https://api.github.com/repos/covexo/devspace/releases/latest" | sed -nE 's!.*"(https://github.com[^"]*devspace-darwin-amd64)".*!\1!p' | xargs -n 1 curl -L -o devspace && chmod +x devspace && sudo mv devspace /usr/local/bin
47+
curl -s -H "Accept: application/json" "https://api.github.com/repos/covexo/devspace/releases/latest" | sed -nE 's!.*"(https://github.com[^"]*devspace-darwin-amd64)".*!\1!p' | xargs -n 1 curl -L -o devspace && chmod +x devspace && sudo mv devspace /usr/local/bin
4748
```
4849

4950
## [Quickstart](https://devspace.covexo.com/docs/getting-started/quickstart.html)

0 commit comments

Comments
 (0)