From bf6440901197494f06ac36a5cbc3051184eb1aef Mon Sep 17 00:00:00 2001 From: Tlntin <371043382@qq.com> Date: Wed, 7 Dec 2022 10:04:48 +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 --- dist/cli.js | 1 + 1 file changed, 1 insertion(+) diff --git a/dist/cli.js b/dist/cli.js index 6b539df..4a562e0 100644 --- a/dist/cli.js +++ b/dist/cli.js @@ -1620,6 +1620,7 @@ function mergeTauriConfig(url, options, tauriConf) { 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`]; yield fs.copyFile(options.icon, ico_path); } if (process.platform === "linux") {