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
  • Loading branch information
develar committed Feb 13, 2017
1 parent a9f2ad8 commit 438b7a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .idea/dictionaries/develar.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ platform:
- x64

cache:
- node_modules
#- node_modules
- '%USERPROFILE%\.electron'

environment:
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 438b7a0

Please sign in to comment.