diff --git a/.copr/Makefile b/.copr/Makefile new file mode 100644 index 0000000..900fbd5 --- /dev/null +++ b/.copr/Makefile @@ -0,0 +1,3 @@ +sprm: + cargo generate-rpm + cp target/release/*.rpm . diff --git a/Cargo.toml b/Cargo.toml index 5450c9f..8a26713 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,6 +23,21 @@ confy = "0.5.1" gnuplot = "0.0.39" serde = { version = "1.0.192", features = ["derive"] } atty = "0.2" + + + +[package.metadata.deb] +name = "mini-calc" +maintainer = "Charlotte Thomas" +copyright = "GPLv3" +license-file = "LICENSE" + +[package.metadata.generate-rpm] +name = "mini-calc" +version = "3.1.0" +license = "GPLv3" +assets = [{source="target/release/mini-calc", dest="/usr/bin/mini-calc", mode = "755"}] + # Config for 'cargo dist' [workspace.metadata.dist] # The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax) @@ -40,3 +55,4 @@ pr-run-mode = "plan" [profile.dist] inherits = "release" lto = "thin" +