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
This commit is contained in:
Paramon, Yevstigneyev 2024-06-18 23:42:40 +03:00 committed by GitHub
parent 7908a678df
commit 31f76b036d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,20 +9,25 @@ On Unix-like systems, you may simply paste the following snippet into your termi
```sh ```sh
cd /tmp \ 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 \ && gunzip cheat-linux-amd64.gz \
&& chmod +x cheat-linux-amd64 \ && chmod +x cheat-linux-amd64 \
&& sudo mv cheat-linux-amd64 /usr/local/bin/cheat && 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. (`cheat-linux-amd64.gz`) depending on your platform.
See the [releases page][releases] for a list of supported platforms. See the [releases page][releases] for a list of supported platforms.
#### Windows #### Windows
TODO: community support is requested here. Please open a PR if you'd like to 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.
contribute installation instructions for Windows.
### 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` ### Install via `go install`
If you have `go` version `>=1.17` available on your `PATH`, you can install If you have `go` version `>=1.17` available on your `PATH`, you can install