fixup some bug for MacOS pake-cli

This commit is contained in:
Tlntin
2023-04-17 22:06:29 +08:00
parent 918fdfec25
commit 50cc5e63c2
2 changed files with 11 additions and 13 deletions

View File

@@ -103,7 +103,6 @@ export async function mergeTauriConfig(
}
// 处理user-agent
logger.warn(userAgent);
if (userAgent.length > 0) {
if (process.platform === "win32") {
tauriConf.pake.user_agent.windows = userAgent;
@@ -129,7 +128,7 @@ export async function mergeTauriConfig(
}
if (process.platform === "darwin") {
tauriConf.pake.user_agent.macos = true;
tauriConf.pake.menu.macos = true;
}
} else {
if (process.platform === "win32") {
@@ -141,7 +140,7 @@ export async function mergeTauriConfig(
}
if (process.platform === "darwin") {
tauriConf.pake.user_agent.macos = false;
tauriConf.pake.menu.macos = false;
}
}