Skip to content

Commit

Permalink
docs: update the instructions to use the platform independent `v down…
Browse files Browse the repository at this point in the history
…load` command (#140)
  • Loading branch information
spytheman authored Nov 13, 2024
1 parent 3168947 commit ef4243a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/install_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:

- name: Install via webscript (Windows)
if: runner.os == 'Windows'
run: curl -o install.vsh https://raw.githubusercontent.com/vlang/v-analyzer/main/install.vsh; v run install.vsh; del install.vsh
run: v download https://raw.githubusercontent.com/vlang/v-analyzer/main/install.vsh; v run install.vsh; del install.vsh

- name: Install via webscript (nix)
if: runner.os != 'Windows'
run: v -e "$(curl https://raw.githubusercontent.com/vlang/v-analyzer/main/install.vsh -fsSL)"
run: v download https://raw.githubusercontent.com/vlang/v-analyzer/main/install.vsh; v run install.vsh; rm -rf install.vsh

- name: Verify installation success
run: ~/.config/v-analyzer/bin/v-analyzer --version
Expand Down
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,19 @@ The features provided by v-analyzer include:

### Linux and macOS

```sh
v -e "$(curl -fsSL https://raw.githubusercontent.com/vlang/v-analyzer/main/install.vsh)"
```sh
v download https://raw.githubusercontent.com/vlang/v-analyzer/main/install.vsh; v run install.vsh; rm install.vsh
```

### Windows

The `install.vsh` file is downloaded to the current directory and stored there temporarily.
If there is another file with this name, make sure it is safe when it is overwritten/deleted.

#### Powershell

```sh
curl -o install.vsh https://raw.githubusercontent.com/vlang/v-analyzer/main/install.vsh; v run install.vsh; del install.vsh
```

#### Command shell
#### Powershell && Command shell

```sh
curl -o install.vsh https://raw.githubusercontent.com/vlang/v-analyzer/main/install.vsh && v run install.vsh && del install.vsh
v download https://raw.githubusercontent.com/vlang/v-analyzer/main/install.vsh; v run install.vsh; del install.vsh
```

## Pre-built binaries
Expand Down

0 comments on commit ef4243a

Please sign in to comment.