From e096f5ac9f1a9e555f22e1087055cf1760dc2c43 Mon Sep 17 00:00:00 2001 From: jcs090218 Date: Mon, 6 Mar 2023 23:54:26 -0800 Subject: [PATCH] docs: Document webinstall --- docs/content/en/Getting Started/Install Eask.md | 17 +++++++++++++++++ webinstall/install.sh | 4 +--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/docs/content/en/Getting Started/Install Eask.md b/docs/content/en/Getting Started/Install Eask.md index ddbeeda3..912e0fb3 100644 --- a/docs/content/en/Getting Started/Install Eask.md +++ b/docs/content/en/Getting Started/Install Eask.md @@ -19,6 +19,23 @@ where you don’t have a privileged account. Ideally, you should install it somewhere in your `PATH` for easy use. `/usr/local/bin` is the most probable location. +### Using Shell + +Eask's [webinstall](https://github.com/emacs-eask/cli/tree/master/webinstall) +provides convenience scripts to download and install the binary. + +#### macOS and Linux + +``` +curl -fsSL https://raw.githubusercontent.com/emacs-eask/cli/master/webinstall/install.sh | sh +``` + +#### Windows + +``` +curl.exe -fsSL https://raw.githubusercontent.com/emacs-eask/cli/master/webinstall/install.bat | cmd /Q +``` + ### npm If you have [npm](https://www.npmjs.com/) installed on your machine, you can diff --git a/webinstall/install.sh b/webinstall/install.sh index 0ce91eb5..eefe6742 100644 --- a/webinstall/install.sh +++ b/webinstall/install.sh @@ -24,8 +24,6 @@ set -e -$URL=https://github.com/emacs-eask/binaries/raw/master/linux-x64.zip - if [ "$OS" = "Windows_NT" ]; then target="win-x64" else @@ -47,7 +45,7 @@ zip=$eask_bin_dir/eask.zip mkdir -p $eask_bin_dir -curl -fsSL eask_uri -o $zip +curl -fsSL $eask_uri -o $zip tar -xf $zip -C $eask_bin_dir