Skip to content

Commit 1753805

Browse files
authored
chore: use more specific filename for macos app when packaging (#3318)
1 parent 90a0d20 commit 1753805

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

packages/hadron-build/lib/target.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -496,22 +496,24 @@ class Target {
496496
this.packagerOptions.appBundleId += `.${this.channel}`;
497497
}
498498

499-
this.osx_dmg_label = this.osx_dmg_filename = `${this.productName}.dmg`;
500-
this.osx_zip_label = this.osx_zip_filename = `${this.productName}.zip`;
499+
this.osx_dmg_label =
500+
this.osx_dmg_filename = `${this.id}-${this.version}-${this.platform}-${this.arch}.dmg`;
501+
this.osx_zip_label =
502+
this.osx_zip_filename = `${this.id}-${this.version}-${this.platform}-${this.arch}.zip`;
501503

502504
this.assets = [
503505
{
504-
name: `${this.id}-${this.version}-${this.platform}-${this.arch}.dmg`,
506+
name: this.osx_dmg_label,
505507
path: this.dest(this.osx_dmg_label)
506508
},
507509
{
508-
name: `${this.id}-${this.version}-${this.platform}-${this.arch}.zip`,
510+
name: this.osx_zip_label,
509511
path: this.dest(this.osx_zip_label)
510512
}
511513
];
512514

513515
this.installerOptions = {
514-
dmgPath: this.dest(`${this.productName}.dmg`),
516+
dmgPath: this.dest(this.osx_dmg_filename),
515517
title: this.truncatedProductName, // actually names the dmg
516518
overwrite: true,
517519
out: this.out,

0 commit comments

Comments
 (0)