diff --git a/Cargo.toml b/Cargo.toml index e907ba49..67082faa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -63,3 +63,8 @@ fuse3 = { version = "0.7.1", features = ["tokio-runtime", "unprivileged"] } [package.metadata.aur] depends = ["fuse3"] + +[package.metadata.generate-rpm] +assets = [ + { source = "target/release/rencfs", dest = "/usr/bin/rencfs", mode = "755" } +] diff --git a/README.md b/README.md index a56b68f8..9a3a3228 100644 --- a/README.md +++ b/README.md @@ -264,6 +264,12 @@ Ubuntu sudo apt-get update && sudo apt-get install fuse3 build-essential ``` +Fedora + +```bash +sudo dnf update && sudo dnf install fuse3 +``` + ### Build for debug ```bash @@ -282,6 +288,25 @@ cargo build --release cargo run -- --mount-point MOUNT_POINT --data-dir DATA_DIR ``` +### Build local RPM for Fedora + +This is using [cargo-generate-rpm](https://crates.io/crates/cargo-generate-rpm) + +```bash +cargo install cargo-generate-rpm +cargo build --release +cargo generate-rpm +``` + +The generated RPM will be located here: `target/generate-rpm`. + +#### Install and run local RPM + +```bash +cd target/generate-rpm/ +sudo dnf localinstall rencfs-xxx.x86_64.rpm +``` + ## Developing inside a Container See here how to configure for [VsCode](https://code.visualstudio.com/docs/devcontainers/containers)