mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-19 19:04:23 +08:00
修复所有平台的构建错误
macOS: - 添加 x86_64-apple-darwin target 到 Rust 安装步骤 Linux: - 将 libwebkit2gtk-4.0-dev 更新为 libwebkit2gtk-4.1-dev(新版本) Android: - 修正 Tauri Android 构建命令的 target 参数 - 使用简化的架构名称(aarch64, armv7, x86_64) Windows: - 修复 devtools 相关的编译错误 - 将 devtools 调用限制在 debug_assertions 模式下 - 在 release 模式下不调用 devtools 方法(这些方法在 release 中不可用)
This commit is contained in:
@@ -100,7 +100,7 @@ pub async fn toggle_devtools(
|
||||
let _ = app;
|
||||
}
|
||||
|
||||
#[cfg(desktop)]
|
||||
#[cfg(debug_assertions)]
|
||||
if let Some(window) = app.get_webview_window("main") {
|
||||
if window.is_devtools_open() {
|
||||
window.close_devtools();
|
||||
|
||||
Reference in New Issue
Block a user