Skip to content

Commit

Permalink
fix: artifactName option does not work in build section
Browse files Browse the repository at this point in the history
Close #1262
  • Loading branch information
develar committed Feb 15, 2017
1 parent ebd7a28 commit 6224060
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/electron-builder/src/platformPackager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,7 @@ export abstract class PlatformPackager<DC extends PlatformSpecificBuildOptions>
expandArtifactNamePattern(targetSpecificOptions: TargetSpecificOptions | n, ext: string, arch?: Arch | null, defaultPattern?: string): string {
let pattern = targetSpecificOptions == null ? null : targetSpecificOptions.artifactName
if (pattern == null) {
pattern = this.platformSpecificBuildOptions.artifactName
}
if (pattern == null) {
pattern = defaultPattern || "${productName}-${version}.${ext}"
pattern = this.platformSpecificBuildOptions.artifactName || this.config.artifactName || defaultPattern || "${productName}-${version}.${ext}"
}

if (arch == null) {
Expand Down

0 comments on commit 6224060

Please sign in to comment.