From 2284ebfaa752a0838714005b726d95f40873c382 Mon Sep 17 00:00:00 2001 From: keiko233 Date: Thu, 14 Mar 2024 10:45:58 +0800 Subject: [PATCH] fix: build --- backend/tauri/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/tauri/src/main.rs b/backend/tauri/src/main.rs index 606e4c4d9b..14c281f572 100644 --- a/backend/tauri/src/main.rs +++ b/backend/tauri/src/main.rs @@ -17,7 +17,10 @@ use crate::{ }; use anyhow::Context; use tauri::{api, Manager, SystemTray}; + +#[cfg(target_os = "windows")] use webview2_com::Microsoft::Web::WebView2::Win32::ICoreWebView2Settings6; +#[cfg(target_os = "windows")] use windows::core::Interface; rust_i18n::i18n!("../../locales");