Skip to content

Commit

Permalink
fix: Prevent conflict between parallel makers electron#3519
Browse files Browse the repository at this point in the history
  • Loading branch information
lockiechen committed Oct 21, 2024
1 parent 4e7517c commit 7f7ad0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/maker/dmg/src/MakerDMG.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ export default class MakerDMG extends MakerBase<MakerDMGConfig> {

async make({ dir, makeDir, appName, packageJSON, targetArch }: MakerOptions): Promise<string[]> {
const { createDMG } = require('electron-installer-dmg');

const outPath = path.resolve(makeDir, `${this.config.name || appName}.dmg`);
const dmgName = `${this.config.name || appName}_${targetArch}.dmg`
const outPath = path.resolve(makeDir, dmgName);
const forgeDefaultOutPath = path.resolve(makeDir, `${appName}-${packageJSON.version}-${targetArch}.dmg`);

await this.ensureFile(outPath);
const dmgConfig = {
overwrite: true,
name: appName,
...this.config,
name: dmgName,
appPath: path.resolve(dir, `${appName}.app`),
out: path.dirname(outPath),
};
Expand Down

0 comments on commit 7f7ad0b

Please sign in to comment.