From b3a7f70f94aa0a14154b4d52d6ed1736ebdd0af1 Mon Sep 17 00:00:00 2001 From: Tlntin Date: Mon, 24 Jun 2024 14:29:36 +0800 Subject: [PATCH] Update cli.js Signed-off-by: Tlntin --- dist/cli.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/cli.js b/dist/cli.js index df42ae1..427acf9 100644 --- a/dist/cli.js +++ b/dist/cli.js @@ -492,7 +492,9 @@ async function mergeConfig(url, options, tauriConf) { Object.assign(tauriConf.pake.windows[0], { url, ...tauriConfWindowOptions }); tauriConf.package.productName = name; tauriConf.tauri.bundle.identifier = identifier; - tauriConf.tauri.bundle.windows.wix.language[0] = installerLanguage; + if (platform == "win32") { + tauriConf.tauri.bundle.windows.wix.language[0] = installerLanguage; + } //Judge the type of URL, whether it is a file or a website. const pathExists = await fsExtra.pathExists(url); if (pathExists) {