From 5c6a34bd830c05cbbd4a2bc2ba579d3fd782b867 Mon Sep 17 00:00:00 2001 From: Tlntin <371043382@qq.com> Date: Wed, 7 Dec 2022 10:01:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0windows=E4=B8=8Bicon=E9=99=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/builders/common.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/builders/common.ts b/bin/builders/common.ts index cfe0efb..4ba578f 100644 --- a/bin/builders/common.ts +++ b/bin/builders/common.ts @@ -43,6 +43,7 @@ export async function mergeTauriConfig( tauriConf.tauri.bundle.icon = [options.icon]; if (process.platform === "win32") { const ico_path = path.join(npmDirectory, `src-tauri/png/${name.toLowerCase()}_32.ico`); + tauriConf.tauri.bundle.resources = [`png/${name.toLowerCase()}_32.ico`]; await fs.copyFile(options.icon, ico_path); } if (process.platform === "linux") {