Skip to content

Commit

Permalink
refactor: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
develar committed Jun 6, 2017
1 parent 5b8abcb commit e8b703f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/electron-builder/src/targets/nsis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,10 @@ export class NsisTarget extends Target {

this.packageHelper.refCount++

let options = Object.assign({}, this.packager.config.nsis) || Object.create(null)
this.options = Object.assign(Object.create(null), this.packager.config.nsis)
if (targetName !== "nsis") {
options = Object.assign(options, (<any>this.packager.config)[targetName === "nsis-web" ? "nsisWeb" : targetName])
Object.assign(this.options, (<any>this.packager.config)[targetName === "nsis-web" ? "nsisWeb" : targetName])
}
this.options = options

const deps = packager.info.metadata.dependencies
if (deps != null && deps["electron-squirrel-startup"] != null) {
Expand Down

0 comments on commit e8b703f

Please sign in to comment.