From 12185cea2e8297a0e750b30bd91dd09088183a49 Mon Sep 17 00:00:00 2001 From: BL-CZY Date: Mon, 2 Sep 2024 13:15:26 +0200 Subject: [PATCH] some updates --- install.sh | 6 ++++++ src/daemon/renderer/config.rs | 2 +- src/{daemon/renderer => }/style.css | 0 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 install.sh rename src/{daemon/renderer => }/style.css (100%) diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..633db66 --- /dev/null +++ b/install.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +cargo build --release +sudo cp target/release/dvvidget /usr/bin/dvvidget +sudo mkdir -p /usr/share/dvvidget/ +sudo cp src/style.css /usr/share/dvvidget/style.css diff --git a/src/daemon/renderer/config.rs b/src/daemon/renderer/config.rs index 317a113..f6935a3 100644 --- a/src/daemon/renderer/config.rs +++ b/src/daemon/renderer/config.rs @@ -2,7 +2,7 @@ use toml::{map::Map, Table, Value}; use super::window::WindowDescriptor; -pub const DEFAULT_CSS_PATH: &str = "/home/tpl/projects/dvvidget/src/daemon/renderer/style.css"; +pub const DEFAULT_CSS_PATH: &str = "/usr/share/dvvidget/style.css"; pub const DEFAULT_VOL_CMD: VolCmdProvider = VolCmdProvider::Wpctl; #[derive(Clone)] diff --git a/src/daemon/renderer/style.css b/src/style.css similarity index 100% rename from src/daemon/renderer/style.css rename to src/style.css