feat: Try to support more architecture

This commit is contained in:
MystiPanda
2024-03-15 21:14:05 +08:00
parent b2197187c1
commit 11465e89a3
7 changed files with 244 additions and 252 deletions

457
src-tauri/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -14,17 +14,16 @@ tauri-build = { version = "1", features = [] }
[dependencies]
warp = "0.3"
which = "6.0.0"
anyhow = "1.0"
dirs = "5.0"
open = "5.0"
log = "0.4"
ctrlc = "3.4"
dunce = "1.0"
log4rs = "1"
nanoid = "0.4"
chrono = "0.4"
sysinfo = "0.30"
boa_engine = "0.18"
serde_json = "1.0"
serde_yaml = "0.9"
once_cell = "1.18"
@@ -39,10 +38,9 @@ reqwest = { version = "0.11", features = ["json", "rustls-tls"] }
sysproxy = { git="https://github.com/zzzgydi/sysproxy-rs", branch = "main" }
auto-launch = { git="https://github.com/zzzgydi/auto-launch", branch = "main" }
tauri = { version = "1.5", features = [ "path-all", "protocol-asset", "dialog-open", "notification-all", "icon-png", "clipboard-all", "global-shortcut-all", "process-all", "shell-all", "system-tray", "updater", "window-all", "devtools"] }
boa_engine = "0.17.3"
[target.'cfg(windows)'.dependencies]
runas = "=1.0.0" # 高版本会返回错误 Status
runas = "=1.2.0"
deelevate = "0.2.0"
winreg = "0.52.0"

View File

@@ -12,7 +12,7 @@ pub fn use_script(script: String, config: Mapping) -> Result<(Mapping, Vec<(Stri
let copy_outputs = outputs.clone();
unsafe {
let _ = context.register_global_builtin_callable(
"__verge_log__",
"__verge_log__".into(),
2,
NativeFunction::from_closure(
move |_: &JsValue, args: &[JsValue], context: &mut Context| {