refact: remove feature cli (#15524)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2026-07-06 16:17:32 +08:00
committed by GitHub
parent 493b14ba78
commit 37141afece
11 changed files with 12 additions and 319 deletions

View File

@@ -12,7 +12,7 @@ use hbb_common::{
log,
};
#[cfg(not(any(feature = "flutter", feature = "cli")))]
#[cfg(not(feature = "flutter"))]
use crate::ui_session_interface::Session;
use crate::{common::get_app_name, ipc, ui_interface::*};
@@ -29,7 +29,7 @@ lazy_static::lazy_static! {
static ref STUPID_VALUES: Mutex<Vec<Arc<Vec<Value>>>> = Default::default();
}
#[cfg(not(any(feature = "flutter", feature = "cli")))]
#[cfg(not(feature = "flutter"))]
lazy_static::lazy_static! {
pub static ref CUR_SESSION: Arc<Mutex<Option<Session<remote::SciterHandler>>>> = Default::default();
}
@@ -151,7 +151,7 @@ pub fn start(args: &mut [String]) {
frame.register_behavior("native-remote", move || {
let handler =
remote::SciterSession::new(cmd.clone(), id.clone(), pass.clone(), args.clone());
#[cfg(not(any(feature = "flutter", feature = "cli")))]
#[cfg(not(feature = "flutter"))]
{
*CUR_SESSION.lock().unwrap() = Some(handler.inner());
}