-
Notifications
You must be signed in to change notification settings - Fork 1
Requirements #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Requirements #4
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,108 @@ | ||
| --- | ||
| Here is the installation guide for **Igneous-md**. | ||
|
|
||
|
|
||
| ### 🛠️ Installation Guide for Igneous-md | ||
|
|
||
| This guide covers installing the required system dependencies (Rust, GTK4, webkit-gtk) and building the application from source. | ||
|
|
||
| #### **Part A: Installing Dependencies for Building (Ubuntu, Debian, Arch, FreeBSD)** | ||
|
|
||
| Before compiling Igneous-md, you need to install Rust and the required libraries. Use the commands for your specific system. | ||
|
|
||
| **1. Install Rust (All Systems)** | ||
| The project requires **Rust 1.89+**. The recommended way to install and manage Rust is via `rustup`. | ||
| ```bash | ||
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | ||
| # Follow the on-screen instructions, then restart your shell or run: | ||
| source ~/.cargo/env | ||
| # Verify the installation: | ||
| rustc --version | ||
| # Ensure it shows version 1.89 or higher (e.g., 1.89.0) | ||
| ``` | ||
|
|
||
| **2A. Install System Dependencies (GTK4 and webkit-gtk)** | ||
|
|
||
| * **Ubuntu / Debian** | ||
| ```bash | ||
| sudo apt update | ||
| sudo apt install libgtk-4-dev libwebkitgtk-6.0-dev build-essential | ||
| ``` | ||
| *(Note: The package `libwebkitgtk-6.0-dev` corresponds to the required webkit-gtk 2.3x+ libraries.)* | ||
|
|
||
| * **Arch Linux** | ||
| ```bash | ||
| sudo pacman -Syu gtk4 webkitgtk-6.0 base-devel | ||
| ``` | ||
|
|
||
| * **FreeBSD** | ||
| ```bash | ||
| # Install as root packages | ||
| pkg install rust gtk4 webkit2-gtk | ||
| ``` | ||
| *(Note: The package name `webkit2-gtk` on FreeBSD provides the necessary webkit-gtk libraries.)* | ||
|
|
||
| #### **Part 2B: Building and Installing from Source Code** | ||
|
|
||
| Once the dependencies from Part A are installed, you can build Igneous-md from source on any system, including **Gentoo** and **NetBSD**. | ||
|
|
||
| **For Gentoo Linux (using `emerge`)** | ||
| 1. **Ensure Rust is installed:** `emerge dev-lang/rust` | ||
| 2. **Ensure Dependencies are installed:** You need to have `gtk4` and `net-libs/webkit-gtk` (version 2.3x+) available. You may need to unmask or accept keywords for these packages if they are not stable. | ||
| ```zsh | ||
| # Example: Add to /etc/portage/package.accept_keywords | ||
| echo "dev-libs/gtk4 ~amd64" >> /etc/portage/package.accept_keywords/igneous-md | ||
| echo "net-libs/webkit-gtk ~amd64" >> /etc/portage/package.accept_keywords/igneous-md | ||
| emerge --ask --deep --newuse --backtrack=100 dev-libs/gtk4 net-libs/webkit-gtk | ||
| ``` | ||
|
|
||
| **For NetBSD (using pkgsrc)** | ||
| 1. **Ensure Rust is installed:** `pkg_add rust` | ||
| 2. **Ensure Dependencies are installed:** You will need to install `gtk4` and `webkit-gtk` from pkgsrc. | ||
| ```zsh | ||
| cd /usr/pkgsrc/x11/gtk4 | ||
| make configure | ||
| make build # takes a long time -> have a cup of coffee | ||
| make install | ||
| make clean | ||
| cd /usr/pkgsrc/www/webkit-gtk | ||
| make configure | ||
| make build | ||
| make install | ||
| make clean | ||
| ``` | ||
|
|
||
| **General Build Steps (for all systems, including Gentoo and NetBSD)** | ||
| 1. **Clone the repository:** | ||
| ```zsh | ||
| git clone https://github.com/DOD-101/igneous-md.git | ||
| cd igneous-md | ||
| ``` | ||
| 2. **Build the project with Cargo (Rust's package manager):** | ||
| ```zsh | ||
| # Build the main application and the viewer in release mode | ||
| cargo build --release | ||
| ``` | ||
| 3. **Install the binaries (optional):** | ||
| The compiled binaries will be located in `./target/release/`. You can copy them to a directory in your `PATH`, such as `/usr/local/bin`. | ||
| ```zsh | ||
| # Example: Install for your user only | ||
| cp ./target/release/igneous-md ~/.local/bin/ | ||
| cp ./target/release/igneous-md-viewer ~/.local/bin/ | ||
|
|
||
| # Or system-wide (may require sudo) | ||
| sudo cp ./target/release/igneous-md /usr/local/bin/ | ||
| sudo cp ./target/release/igneous-md-viewer /usr/local/bin/ | ||
| ``` | ||
|
|
||
| ### ✅ Verification | ||
| After following these steps, you should be able to run the viewer: | ||
| ```bash | ||
| igneous-md-viewer | ||
| ``` | ||
| Or view a markdown file: | ||
| ```bash | ||
| igneous-md view path/to/your/file.md | ||
| ``` | ||
|
|
||
|
|
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.