From 62d89c6fad055a1360070cdb1d8a2a831a37e5b3 Mon Sep 17 00:00:00 2001 From: Tlntin Date: Tue, 22 Nov 2022 00:25:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=B1=E4=BA=8E=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E8=B7=AF=E5=BE=84=E9=87=87=E7=94=A8=E7=BB=9D=E5=AF=B9?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=EF=BC=8C=E4=BB=A5=E5=8F=8A=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E4=B8=BA=E6=B7=BB=E5=8A=A0=E5=88=B0msi?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=AF=BC=E8=87=B4exe=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=BF=90=E8=A1=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/main.rs | 4 +--- src-tauri/tauri.conf.json | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 383a5b5..8ba6e3f 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -118,9 +118,7 @@ fn main() -> wry::Result<()> { }) .with_inner_size(wry::application::dpi::LogicalSize::new(width, height)); #[cfg(target_os = "windows")] - let icon_path = concat!(env!("CARGO_MANIFEST_DIR"), "/png/weread_32.ico"); - #[cfg(target_os = "windows")] - let icon = load_icon(std::path::Path::new(icon_path)); + let icon = load_icon(std::path::Path::new("png/weread_32.ico")); #[cfg(target_os = "windows")] let window = common_window diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 2f28d0d..b8c66d5 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -52,7 +52,7 @@ "providerShortName": null, "signingIdentity": null }, - "resources": [], + "resources": ["png/weread_32.ico"], "shortDescription": "", "targets": ["deb", "msi", "dmg"], "windows": {