From: Ruben Beltran del Rio Date: Tue, 12 Mar 2024 21:52:02 +0000 (+0100) Subject: Add generate-rpm X-Git-Tag: 7.0.0~9 X-Git-Url: https://git.r.bdr.sh/rbdr/blog/commitdiff_plain/57351e3349ace090ea14b7814b84e5297e917770?ds=inline Add generate-rpm --- diff --git a/.build.yml b/.build.yml index afe1fce..b148723 100644 --- a/.build.yml +++ b/.build.yml @@ -20,6 +20,8 @@ tasks: - set_rust: | cd blog make set_rust + - install_builders: | + cargo install cargo-generate-rpm - package: | cd blog make ci diff --git a/Cargo.toml b/Cargo.toml index 00721e8..8810838 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,9 @@ name = "blog" version = "7.0.0" edition = "2021" +license = "AGPL-3.0-or-later" +description = "Command line tool to author and manage a semi-ephemeral™ blog with a gemini archive." +homepage = "https://r.bdr.sh/blog.html" [dependencies] time = { version = "0.3.34", features = ["macros", "formatting"] } @@ -12,3 +15,9 @@ serde_json = "1.0.114" strip = true lto = true panic = "abort" + +[package.metadata.generate-rpm] +assets = [ + { source = "target/release/blog", dest = "/usr/bin/blog", mode = "755" }, + { source = "man/blog.1", dest = "/usr/share/man/man1/blog.1", mode = "644" }, +] diff --git a/Makefile b/Makefile index 2c1d4b3..2caadd7 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,7 @@ else endif rpm: build + cargo generate-rpm --profile $(profile) --target $(target) tar: build @$(eval filename := $(app_name)-$(target)-$(channel))