Skip to content

Commit

Permalink
fix(nsis): Custom NSIS Script !include could not find nsh file
Browse files Browse the repository at this point in the history
Close #1239
  • Loading branch information
develar committed Feb 13, 2017
1 parent 472ef7e commit 3fbf113
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .yarnclean
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# test directories
__tests__
test
#test
tests
powered-test

Expand Down
2 changes: 1 addition & 1 deletion packages/electron-builder/src/targets/nsis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ export default class NsisTarget extends Target {
const packager = this.packager
const customInclude = await packager.getResource(this.options.include, "installer.nsh")
if (customInclude != null) {
script = `!include "${customInclude}"\n!addincludedir "${packager.buildResourcesDir}"\n${script}`
script = `!addincludedir "${packager.buildResourcesDir}"\n!addplugindir "${packager.buildResourcesDir}"\n\n!include "${customInclude}"\n\n${script}`
}

const fileAssociations = packager.fileAssociations
Expand Down

0 comments on commit 3fbf113

Please sign in to comment.