From bb0a1bd4c2a56f6b191b7d051ea3f2976c3bcb11 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 13 Nov 2024 20:43:19 +0200 Subject: [PATCH] install, docs: use a single `v download -RD https://raw.githubusercontent.com/vlang/v-analyzer/main/install.vsh` command on all platforms --- .github/workflows/install_ci.yml | 9 ++------- README.md | 19 ++++++------------- 2 files changed, 8 insertions(+), 20 deletions(-) diff --git a/.github/workflows/install_ci.yml b/.github/workflows/install_ci.yml index d851ef9..63845dc 100644 --- a/.github/workflows/install_ci.yml +++ b/.github/workflows/install_ci.yml @@ -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 diff --git a/README.md b/README.md index ded5df4..53122f6 100644 --- a/README.md +++ b/README.md @@ -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