From 08e8ed5f02fbafc4f64a85499a194c00751559b4 Mon Sep 17 00:00:00 2001 From: JenChieh Date: Tue, 28 May 2024 14:55:38 -0700 Subject: [PATCH] docs: Add Winget support --- .../Getting-Started/Install-Eask/_index.en.md | 42 ++++++++++++------- .../Install-Eask/_index.zh-tw.md | 41 +++++++++++------- 2 files changed, 54 insertions(+), 29 deletions(-) diff --git a/docs/content/Getting-Started/Install-Eask/_index.en.md b/docs/content/Getting-Started/Install-Eask/_index.en.md index ad53c7a5..5aa8bf5b 100644 --- a/docs/content/Getting-Started/Install-Eask/_index.en.md +++ b/docs/content/Getting-Started/Install-Eask/_index.en.md @@ -37,7 +37,7 @@ $ curl.exe -fsSL https://raw.githubusercontent.com/emacs-eask/cli/master/webinst ### 📦 npm (Cross-platform) -If you have [npm](https://www.npmjs.com/) installed on your machine, you can +If you have [npm][] installed on your machine, you can install Eask with the following one-liner: ```sh @@ -46,8 +46,8 @@ $ npm install -g @emacs-eask/cli ### 📦 Homebrew (macOS or Linux) -[Homebrew](https://brew.sh/) is a free and open source package manager for -macOS and Linux. This will install the Eask CLI: +[Homebrew][] is a free and open-source package manager for macOS and Linux. +To install the Eask CLI: ```sh $ brew tap emacs-eask/cli https://github.com/emacs-eask/packaging @@ -56,8 +56,8 @@ $ brew install eask-cli ### 📦 MacPorts (macOS) -[MacPorts](https://www.macports.org/) is a free and open source package manager for macOS. -This will install the Eask CLI: +[MacPorts][] is a free and open-source package manager for macOS. +To install the Eask CLI: ```sh $ sudo port install eask-cli @@ -76,13 +76,11 @@ $ sudo apt update --allow-insecure-repositories $ sudo apt install eask-cli --allow-unauthenticated ``` -You can also download Debian packages from the -[packaging](https://github.com/emacs-eask/packaging/tree/master/debian) -repo. +You can also download Debian packages from the [packaging][] repo. ### 📦 Snap (Linux) -[Snap](https://snapcraft.io/) is a free and open source package manager for Linux. +[Snap][] is a free and open-source package manager for Linux. Available for most distributions, snap packages are simple to install and are automatically updated. @@ -101,7 +99,7 @@ $ makepkg -i ### 📦 Chocolatey (Windows) -If you have [Chocolatey](https://chocolatey.org/) installed on your machine, you can +If you have [Chocolatey][] installed on your machine, you can install Eask with the following one-liner: ```sh @@ -110,8 +108,8 @@ $ choco install eask-cli ### 📦 Scoop (Windows) -[Scoop](https://scoop.sh/) is a free and open source package manager for Windows. -This will install the Eask CLI: +[Scoop][] is a free and open-source package manager for Windows. +To install the Eask CLI: ```sh $ scoop bucket add emacs-eask/cli https://github.com/emacs-eask/packaging @@ -120,7 +118,12 @@ $ scoop install eask-cli ### 📦 Winget (Windows) -WIP +[Winget][] is Microsoft’s official free and open-source package manager for Windows. +To install the Eask CLI: + +``` +$ winget install eask.cli +``` ## 💾 Build from source @@ -194,10 +197,21 @@ to your environment `PATH` to execute eask from any location! 🎉 🎊 +[packaging]: https://github.com/emacs-eask/packaging/tree/master/debian + +[Homebrew]: https://brew.sh/ +[MacPorts]: https://www.macports.org/ +[Snap]: https://snapcraft.io/ +[Chocolatey]: https://chocolatey.org/ +[Scoop]: https://scoop.sh/ +[Winget]: https://learn.microsoft.com/en-us/windows/package-manager/ + [Git]: https://git-scm.com/ [Node.js]: https://nodejs.org/en/ [npm]: https://www.npmjs.com/ +[pkg]: https://github.com/vercel/pkg + [Debian]: https://www.debian.org/ [elementary OS]: https://elementary.io/ [KDE neon]: https://neon.kde.org/ @@ -207,5 +221,3 @@ to your environment `PATH` to execute eask from any location! 🎉 🎊 [Pop!_OS]: https://pop.system76.com/ [Ubuntu]: https://ubuntu.com/ [Zorin OS]: https://zorin.com/os/ - -[pkg]: https://github.com/vercel/pkg diff --git a/docs/content/Getting-Started/Install-Eask/_index.zh-tw.md b/docs/content/Getting-Started/Install-Eask/_index.zh-tw.md index adc964ea..042d9753 100644 --- a/docs/content/Getting-Started/Install-Eask/_index.zh-tw.md +++ b/docs/content/Getting-Started/Install-Eask/_index.zh-tw.md @@ -34,7 +34,7 @@ $ curl.exe -fsSL https://raw.githubusercontent.com/emacs-eask/cli/master/webinst ### 📦 npm (跨平台) -如果您的機器上安裝了 [npm](https://www.npmjs.com/),您可以使用以下一行代碼安裝 Eask: +如果您的機器上安裝了 [npm][],您可以使用以下一行代碼安裝 Eask: ```sh $ npm install -g @emacs-eask/cli @@ -42,8 +42,8 @@ $ npm install -g @emacs-eask/cli ### 📦 Homebrew (macOS 或 Linux) -[Homebrew](https://brew.sh/) 是一個適用於 macOS 和 Linux 的免費開源套件管理器。 -這將安裝 Eask CLI: +[Homebrew][] 是一個適用於 macOS 和 Linux 的免費開源套件管理器。 +若要安裝 Eask CLI,請執行下列操作: ```sh $ brew tap emacs-eask/cli https://github.com/emacs-eask/packaging @@ -52,8 +52,8 @@ $ brew install eask-cli ### 📦 MacPorts (macOS) -[MacPorts](https://www.macports.org/) 是一款適用於 macOS 的免費開源套件管理器。 -這將安裝 Eask CLI: +[MacPorts][] 是一款適用於 macOS 的免費開源套件管理器。 +若要安裝 Eask CLI,請執行下列操作: ```sh $ sudo port install eask-cli @@ -73,12 +73,11 @@ $ sudo apt install eask-cli --allow-unauthenticated ``` 您也可以直接從 -[packaging](https://github.com/emacs-eask/packaging/tree/master/debian) -代碼庫下載 Debian 軟體包。 +[packaging][] 代碼庫下載 Debian 軟體包。 ### 📦 Snap (Linux) -[Snap](https://snapcraft.io/) 是一款適用於 Linux 的免費開源套件管理器。 +[Snap][] 是一款適用於 Linux 的免費開源套件管理器。 snap 套件適用於大多數發行版,安裝簡單且會自動更新。 ```sh @@ -95,7 +94,7 @@ $ makepkg -i ### 📦 Chocolatey (Windows) -如果您的計算機上安裝了 [Chocolatey](https://chocolatey.org/),則可以使用以下一行代碼安裝 Eask: +如果您的計算機上安裝了 [Chocolatey][],則可以使用以下一行代碼安裝 Eask: ```sh $ choco install eask-cli @@ -103,8 +102,8 @@ $ choco install eask-cli ### 📦 Scoop (Windows) -[Scoop](https://scoop.sh/) 是一個適用於 Windows 的免費開源套件管理器。 -這將安裝 Eask CLI: +[Scoop][] 是一個適用於 Windows 的免費開源套件管理器。 +若要安裝 Eask CLI,請執行下列操作: ```sh $ scoop bucket add emacs-eask/cli https://github.com/emacs-eask/packaging @@ -113,7 +112,12 @@ $ scoop install eask-cli ### 📦 Winget (Windows) -WIP +[Winget][]是微軟官方的 Windows 免費開源軟體套件管理器。 +若要安裝 Eask CLI,請執行下列操作: + +``` +$ winget install eask.cli +``` ## 💾 從原始碼構建 @@ -189,10 +193,21 @@ mv lisp dist +[packaging]: https://github.com/emacs-eask/packaging/tree/master/debian + +[Homebrew]: https://brew.sh/ +[MacPorts]: https://www.macports.org/ +[Snap]: https://snapcraft.io/ +[Chocolatey]: https://chocolatey.org/ +[Scoop]: https://scoop.sh/ +[Winget]: https://learn.microsoft.com/en-us/windows/package-manager/ + [Git]: https://git-scm.com/ [Node.js]: https://nodejs.org/en/ [npm]: https://www.npmjs.com/ +[pkg]: https://github.com/vercel/pkg + [Debian]: https://www.debian.org/ [elementary OS]: https://elementary.io/ [KDE neon]: https://neon.kde.org/ @@ -202,5 +217,3 @@ mv lisp dist [Pop!_OS]: https://pop.system76.com/ [Ubuntu]: https://ubuntu.com/ [Zorin OS]: https://zorin.com/os/ - -[pkg]: https://github.com/vercel/pkg