feat: balena broke network plugin, fixed dioxus dependency issue

This commit is contained in:
imgurbot12 2024-03-02 12:33:00 -07:00
parent 4d8b895359
commit 6361424123
5 changed files with 8 additions and 7 deletions

View File

@ -5,6 +5,6 @@ members = [
"rmenu-plugin",
"plugin-run",
"plugin-desktop",
"plugin-network",
# "plugin-network",
"plugin-window",
]

View File

@ -38,7 +38,7 @@ deploy:
cp -vf ./target/release/rmenu-build ${INSTALL}/rmenu-build
cp -vf ./target/release/desktop ${DEST}/rmenu-desktop
cp -vf ./target/release/run ${DEST}/rmenu-run
cp -vf ./target/release/network ${DEST}/rmenu-network
# cp -vf ./target/release/network ${DEST}/rmenu-network
cp -vf ./target/release/window ${DEST}/rmenu-window
cp -vf ./rmenu/public/config.yaml ${DEST}/config.yaml
ln -sf ${DEST}/themes/dark.css ${DEST}/style.css
@ -55,5 +55,5 @@ build-rmenu:
build-plugins:
${CARGO} build -p run ${FLAGS}
${CARGO} build -p desktop ${FLAGS}
${CARGO} build -p network ${FLAGS}
# ${CARGO} build -p network ${FLAGS}
${CARGO} build -p window ${FLAGS}

View File

@ -8,8 +8,9 @@ edition = "2021"
[dependencies]
cached = "0.44.0"
clap = { version = "4.3.15", features = ["derive"] }
dioxus = "0.4.0"
dioxus-desktop = "0.4.0"
dioxus = "0.4.3"
dioxus-desktop = "0.4.3"
dioxus-html = "0.4.3"
env_logger = "0.10.0"
heck = "0.4.1"
keyboard-types = "0.6.2"

View File

@ -1,6 +1,5 @@
//! RMENU Configuration Implementations
use heck::AsPascalCase;
use keyboard_types::{Code, Modifiers};
use rmenu_plugin::Options;
use serde::{de::Error, Deserialize};
use std::collections::BTreeMap;
@ -10,6 +9,7 @@ use dioxus_desktop::tao::{
dpi::{LogicalPosition, LogicalSize},
window::Fullscreen,
};
use dioxus_html::input_data::keyboard_types::{Code, Modifiers};
// parse supported modifiers from string
fn mod_from_str(s: &str) -> Option<Modifiers> {

View File

@ -3,7 +3,7 @@
use std::fmt::Display;
use dioxus::prelude::*;
use keyboard_types::{Code, Modifiers};
use dioxus_html::input_data::keyboard_types::{Code, Modifiers};
use rmenu_plugin::Entry;
use crate::config::Keybind;