Skip to content

Commit

Permalink
Allow custom defines to be specified for NSIS installer scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Nolle committed Dec 22, 2016
1 parent fa4be0f commit ca9d3df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/options/winOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ export interface NsisOptions {
readonly downloadUrl?: string

readonly downloadHost?: string

readonly defines?: any
}

/*
Expand Down
2 changes: 2 additions & 0 deletions src/targets/nsis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ export default class NsisTarget extends Target {
}
}

Object.assign(defines, this.options.defines)

debug(defines)
debug(commands)

Expand Down

0 comments on commit ca9d3df

Please sign in to comment.