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 7f7ad0b commit 3983c73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/maker/dmg/src/MakerDMG.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export default class MakerDMG extends MakerBase<MakerDMGConfig> {

async make({ dir, makeDir, appName, packageJSON, targetArch }: MakerOptions): Promise<string[]> {
const { createDMG } = require('electron-installer-dmg');
const dmgName = `${this.config.name || appName}_${targetArch}.dmg`
const outPath = path.resolve(makeDir, dmgName);
const dmgName = `${this.config.name || appName}_${targetArch}`;
const outPath = path.resolve(makeDir, `${dmgName}.dmg`);
const forgeDefaultOutPath = path.resolve(makeDir, `${appName}-${packageJSON.version}-${targetArch}.dmg`);

await this.ensureFile(outPath);
Expand Down

0 comments on commit 3983c73

Please sign in to comment.