🎨 Fix the packaging issue for Linux and Windows.

This commit is contained in:
Tw93
2023-06-23 19:06:17 +08:00
parent b3c087d161
commit 8865500593
4 changed files with 8 additions and 8 deletions

View File

@@ -82,7 +82,7 @@ export default abstract class BaseBuilder {
}
protected getFileType(target: string): string {
return target.toLowerCase();
return target;
}
abstract getFileName(): string;
@@ -99,7 +99,7 @@ export default abstract class BaseBuilder {
return path.join(
npmDirectory,
this.getBasePath(),
fileType,
fileType.toLowerCase(),
`${fileName}.${fileType}`
);
}

View File

@@ -15,7 +15,6 @@ export async function mergeConfig(
height,
fullscreen,
transparent,
resizable,
userAgent,
showMenu,
showSystemTray,
@@ -23,6 +22,7 @@ export async function mergeConfig(
iterCopyFile,
identifier,
name,
resizable = true,
} = options;
const { platform } = process;