🎨 Fix the packaging issue for Linux and Windows
This commit is contained in:
11
bin/builders/WinBuilder.ts
vendored
11
bin/builders/WinBuilder.ts
vendored
@@ -5,20 +5,13 @@ import tauriConfig from '@/helpers/tauriConfig';
|
||||
export default class WinBuilder extends BaseBuilder {
|
||||
constructor(options: PakeAppOptions) {
|
||||
super(options);
|
||||
}
|
||||
|
||||
async build(url: string) {
|
||||
await this.buildAndCopy(url);
|
||||
this.options.targets = "msi";
|
||||
}
|
||||
|
||||
getFileName(): string {
|
||||
const { name } = this.options;
|
||||
const arch = this.getArch();
|
||||
const { arch } = process;
|
||||
const language = tauriConfig.tauri.bundle.windows.wix.language[0];
|
||||
return `${name}_${tauriConfig.package.version}_${arch}_${language}`;
|
||||
}
|
||||
|
||||
getExtension(): string {
|
||||
return "msi";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user