Skip to content

Commit

Permalink
install, docs: use a single v download -RD https://raw.githubusercon…
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Nov 13, 2024
1 parent 85ab70d commit bb0a1bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/install_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,8 @@ jobs:
with:
check-latest: true

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

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

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

## Installation

### Linux and macOS
### Linux, macOS, Windows
Note: the following command will download `install.vsh` to the current directory, then
run it, and then *delete it*. If there is a pre-existing file with this name, make sure it
is safe, when it is overwritten/deleted, or change the current directory (the script itself
can be run from anywhere).

```sh
v download https://raw.githubusercontent.com/vlang/v-analyzer/main/install.vsh; v 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 && Command shell

```sh
v download https://raw.githubusercontent.com/vlang/v-analyzer/main/install.vsh; v install.vsh; del install.vsh
v download -RD https://raw.githubusercontent.com/vlang/v-analyzer/main/install.vsh
```

## Pre-built binaries
Expand Down

0 comments on commit bb0a1bd

Please sign in to comment.