From 31f76b036d164e23d702036f5a110a3dc7d23dbd Mon Sep 17 00:00:00 2001 From: "Paramon, Yevstigneyev" <90145033+PYP2205@users.noreply.github.com> Date: Tue, 18 Jun 2024 23:42:40 +0300 Subject: [PATCH] Added winget installation instructions for Windows Added installation instructions to include instructions to install cheat with winget. I submitted the winget manifest to be added as a winget package. As of writing this pull request, it needs to be verified by a moderator for it to be merged. If the manifest gets merged, then this pull request should be ready to merge. Link to pull request: https://github.com/microsoft/winget-pkgs/pull/158530 --- INSTALLING.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/INSTALLING.md b/INSTALLING.md index d579909..028279e 100644 --- a/INSTALLING.md +++ b/INSTALLING.md @@ -9,20 +9,25 @@ On Unix-like systems, you may simply paste the following snippet into your termi ```sh cd /tmp \ - && wget https://github.com/cheat/cheat/releases/download/4.4.2/cheat-linux-amd64.gz \ +https://github.com/cheat/cheat/releases/latest/download/cheat-linux-amd64.gz \ && gunzip cheat-linux-amd64.gz \ && chmod +x cheat-linux-amd64 \ && sudo mv cheat-linux-amd64 /usr/local/bin/cheat ``` -You may need to need to change the version number (`4.4.2`) and the archive +You may need to need to change the archive (`cheat-linux-amd64.gz`) depending on your platform. See the [releases page][releases] for a list of supported platforms. #### Windows -TODO: community support is requested here. Please open a PR if you'd like to -contribute installation instructions for Windows. +You can download the latest windows archive in the releases page. Now extract the archive and put "cheat-windows-amd64.exe" in the directory you wish to install it in then rename it to "cheat.exe". Finally, edit the PATH enviroment variable for your user account or the entire system to include the directory where "cheat.exe" is located. + +### Install via `winget` +If you have Windows 10 or later and winget on your system, you can install `cheat` via `winget`: +```pwsh +winget install ChrisAllenLane.cheat +``` ### Install via `go install` If you have `go` version `>=1.17` available on your `PATH`, you can install