From baea6c20162d15ab8564b25aa6d7999ee869ba97 Mon Sep 17 00:00:00 2001 From: Nikolay Mardanov Date: Fri, 4 Feb 2022 13:11:45 +0300 Subject: [PATCH 1/2] cargo.toml tweaks for rpm build --- client/Cargo.toml | 11 +++++++++++ server/Cargo.toml | 2 ++ 2 files changed, 13 insertions(+) diff --git a/client/Cargo.toml b/client/Cargo.toml index 83ab274..a8db383 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -1,5 +1,7 @@ [package] name = "client" +description = "A tool for sharing keyboard and mouse across multiple Linux and Windows machines, the client" +license = "MIT" version = "0.2.0" authors = ["Jan Trefil <8711792+htrefil@users.noreply.github.com>"] edition = "2018" @@ -17,3 +19,12 @@ log = "0.4.11" env_logger = "0.8.1" tokio-native-tls = "0.3.0" anyhow = "1.0.33" + +[package.metadata.rpm] +package = "client" + +[package.metadata.rpm.cargo] +buildflags = ["--release"] + +[package.metadata.rpm.targets] +client = { path = "/usr/bin/client" } diff --git a/server/Cargo.toml b/server/Cargo.toml index b417864..89f97c5 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -1,5 +1,7 @@ [package] name = "server" +description = "A tool for sharing keyboard and mouse across multiple Linux and Windows machines, the server" +license = "MIT" version = "0.2.0" authors = ["Jan Trefil <8711792+htrefil@users.noreply.github.com>"] edition = "2018" From eb4b05ddcc04a5ca066846513caacf9478a1e9e0 Mon Sep 17 00:00:00 2001 From: Nikolay Mardanov Date: Fri, 4 Feb 2022 13:17:38 +0300 Subject: [PATCH 2/2] beter executable path --- client/Cargo.toml | 2 +- server/Cargo.toml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/client/Cargo.toml b/client/Cargo.toml index a8db383..dcdb205 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -27,4 +27,4 @@ package = "client" buildflags = ["--release"] [package.metadata.rpm.targets] -client = { path = "/usr/bin/client" } +client = { path = "/usr/bin/rkvm-client" } diff --git a/server/Cargo.toml b/server/Cargo.toml index 89f97c5..1fbac19 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -19,3 +19,12 @@ log = "0.4.11" env_logger = "0.8.1" tokio-native-tls = "0.3.0" anyhow = "1.0.33" + +[package.metadata.rpm] +package = "server" + +[package.metadata.rpm.cargo] +buildflags = ["--release"] + +[package.metadata.rpm.targets] +server = { path = "/usr/bin/rkvm-server" }