-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Shigure Kurosaki <shigure@hqsy.net>
- Loading branch information
1 parent
a0e4652
commit 829373d
Showing
4 changed files
with
37 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,46 @@ | ||
# Installing from Source | ||
# Installation | ||
|
||
## Ensure Rust Toolchain is Installed | ||
## Package Managers | ||
|
||
First, make sure that you have the Rust toolchain installed. | ||
|
||
> If you haven’t installed it yet, visit the [official Rust website](https://www.rust-lang.org) and follow the instructions to install Rust and Cargo. | ||
You can check if Rust and Cargo are installed by running: | ||
### Cargo | ||
|
||
```bash | ||
rustc --version | ||
cargo --version | ||
cargo binstall katharsis | ||
# or | ||
cargo binstall katharsis@1.0.0-canary.24 | ||
``` | ||
|
||
> You should see version information if they are properly installed. | ||
### Paru | ||
|
||
## Navigate to the Project Directory | ||
```bash | ||
paru -S katharsis | ||
``` | ||
|
||
Open a terminal and navigate to the root directory of the Katharsis project you [cloned](https://github.com/git-guides/git-clone) from GitHub. | ||
### Apt | ||
|
||
```bash | ||
cd /path/to/your/katharsis/project | ||
sudo apt install ~/your/download/path/katharsis.deb | ||
``` | ||
|
||
## Install and Build the Project | ||
|
||
To install the dependencies specified in the `Cargo.toml` file, run the following command: | ||
## Manual | ||
|
||
```bash | ||
cargo build --release | ||
# Extract the tarball | ||
tar -xzf ~/your/download/path/katharsis.tar.gz | ||
|
||
# Move the binary to the appropriate directory | ||
mv ~/your/extract/path/katharsis /usr/local/bin | ||
``` | ||
|
||
> - This command not only installs the dependencies but also builds the project. | ||
> - You can run the `cd target/release` command in the root directory of the project to find the katharsis executable file in the release folder. | ||
## Source | ||
|
||
## Run Unit Tests (optional) | ||
```bash | ||
# Clone the repository | ||
git clone --filter=blob:none --branch canary --single-branch https://github.com/kurosakishigure/katharsis.git | ||
|
||
Run the unit tests to ensure that everything in the project is functioning correctly: | ||
# Install the project | ||
cd katharsis && cargo build --release | ||
|
||
```bash | ||
cargo test | ||
# Move the binary to the appropriate directory | ||
mv target/release/katharsis /usr/local/bin | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters