Skip to content

Commit

Permalink
Added option to build local RPM package for Fedora
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Birgiser <[email protected]>
  • Loading branch information
erik96 committed Jun 3, 2024
1 parent c1d734a commit 2da11e5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
]
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 2da11e5

Please sign in to comment.