mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2026-02-02 15:45:11 +01:00
docs: generic linux install
This commit is contained in:
parent
393529ddf1
commit
ae7307ad3a
1 changed files with 18 additions and 4 deletions
22
README.md
22
README.md
|
|
@ -45,13 +45,29 @@ Install from your package manager if available:
|
||||||
|
|
||||||
[](https://repology.org/project/pay-respects/versions)
|
[](https://repology.org/project/pay-respects/versions)
|
||||||
|
|
||||||
Or if you have cargo installed:
|
For generic x86 Linux desktop, you can get the binary from [releases](https://github.com/iffse/pay-respects/releases).
|
||||||
|
```shell
|
||||||
|
# download lastest release
|
||||||
|
curl -sL -o pay-respects.zip \
|
||||||
|
$(curl -s https://api.github.com/repos/iffse/pay-respects/releases/latest \
|
||||||
|
| sed 's/[()",{}]/ /g; s/ /\n/g' \
|
||||||
|
| grep "https.*pay-respects-ubuntu-latest.zip")
|
||||||
|
unzip -q pay-respects.zip pay-respects
|
||||||
|
rm pay-respects.zip
|
||||||
|
|
||||||
|
# system-wide installation
|
||||||
|
sudo chmod a+x pay-respects
|
||||||
|
sudo mv pay-respects /usr/local/bin/pay-respects
|
||||||
|
```
|
||||||
|
|
||||||
|
If you have cargo installed, you can compile it from source (should work regardless of operating system or architecture):
|
||||||
```shell
|
```shell
|
||||||
# install from crates.io
|
# install from crates.io
|
||||||
# enabling runtime-rules is optional
|
# enabling runtime-rules is optional
|
||||||
cargo install pay-respects --features=runtime-rules
|
cargo install pay-respects --features=runtime-rules
|
||||||
|
|
||||||
# clone from git and install, suitable for adding custom compile-time rules
|
# clone from git and install
|
||||||
|
# suitable for adding custom compile-time rules
|
||||||
git clone --depth 1 https://github.com/iffse/pay-respects
|
git clone --depth 1 https://github.com/iffse/pay-respects
|
||||||
cd pay-respects
|
cd pay-respects
|
||||||
cargo install --path .
|
cargo install --path .
|
||||||
|
|
@ -61,8 +77,6 @@ cargo install --path .
|
||||||
cargo build --release
|
cargo build --release
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternatively, you can download Linux binary from [releases](https://github.com/iffse/pay-respects/releases).
|
|
||||||
|
|
||||||
## Rule Files
|
## Rule Files
|
||||||
|
|
||||||
See [writing rules](./rules.md) for how to write rules.
|
See [writing rules](./rules.md) for how to write rules.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue