Skip to content
Snippets Groups Projects
Commit e1e8f199 authored by d0p1's avatar d0p1
Browse files

packaging: build rpm with cargo-generate-rpm

parent 1ea5bce4
No related branches found
No related tags found
No related merge requests found
Pipeline #38794 failed
# How to Build the Duniter RPM Package
1. Install dependencies:
```sh
# Fedora
sudo dnf install clang cmake protobuf-compiler openssl-devel
```
2. Compile the project:
```sh
cargo build --release
```
3. Install `cargo-generate-rpm`:
```sh
cargo install cargo-generate-rpm
```
4. Build the package:
```sh
cargo generate-rpm -p node
```
5. The `.rpm` package will be located in the `target/generate-rpm` folder.
...@@ -212,3 +212,11 @@ assets = [ ...@@ -212,3 +212,11 @@ assets = [
"755", "755",
], ],
] ]
[package.metadata.generate-rpm]
assets = [
{ source = "../target/release/duniter", dest = "/usr/bin/duniter", mode = "755" },
{ source = "../resources/debian/env_file", dest = "/etc/duniter/env_file", config = true, mode = "0640" },
{ source = "../resources/debian/duniter-mirror.service", dest = "/etc/systemd/system/duniter-mirror.service", config = true, mode = "0644" },
{ source = "../resources/debian/duniter-smith.service", dest = "/etc/systemd/system/duniter-smith.service", config = true, mode = "0644" },
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment