Update cli.js

Signed-off-by: Tlntin <TlntinDeng01@Gmail.com>
This commit is contained in:
Tlntin
2024-06-24 14:29:36 +08:00
committed by GitHub
parent 50c0c329e9
commit b3a7f70f94

4
dist/cli.js vendored
View File

@@ -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) {