From a02b70926c0e0c57b9774110329aba9c3bfbd5a4 Mon Sep 17 00:00:00 2001 From: Tlntin Date: Thu, 29 Dec 2022 11:36:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4pake-cli=20=E9=BB=98=E8=AE=A4?= =?UTF-8?q?linux=E5=B9=B3=E5=8F=B0=E7=9A=84=E6=A1=8C=E9=9D=A2=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E6=96=87=E4=BB=B6=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/cli.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dist/cli.js b/dist/cli.js index 306dc1e..97167b2 100644 --- a/dist/cli.js +++ b/dist/cli.js @@ -1764,6 +1764,10 @@ function mergeTauriConfig(url, options, tauriConf) { } tauriConf.package.productName = name; tauriConf.tauri.bundle.identifier = identifier; + // 删除映射关系 + if (process.platform === "linux") { + delete tauriConf.tauri.bundle.deb.files; + } // 处理应用图标 const exists = yield fs$1.stat(options.icon) .then(() => true) @@ -1783,7 +1787,6 @@ function mergeTauriConfig(url, options, tauriConf) { } } if (process.platform === "linux") { - delete tauriConf.tauri.bundle.deb.files; if (customIconExt != ".png") { updateIconPath = false; logger.warn(`icon file in Linux must be 512 * 512 pix with .png type, but you give ${customIconExt}`);