🐛 cli support tauri2

This commit is contained in:
Tw93
2024-12-16 15:09:57 +08:00
parent a566bb2849
commit d3e4217bed
4 changed files with 8 additions and 9 deletions

View File

@@ -45,10 +45,10 @@ export async function mergeConfig(url: string, options: PakeAppOptions, tauriCon
};
Object.assign(tauriConf.pake.windows[0], { url, ...tauriConfWindowOptions });
tauriConf.package.productName = name;
tauriConf.tauri.bundle.identifier = identifier;
tauriConf.productName = name;
tauriConf.identifier = identifier;
if (platform == "win32") {
tauriConf.tauri.bundle.windows.wix.language[0] = installerLanguage;
tauriConf.bundle.windows.wix.language[0] = installerLanguage;
}
//Judge the type of URL, whether it is a file or a website.