Skip to content

Commit

Permalink
fix: ELECTRON_BUILDER_NSIS_DIR env var setting (#3068)
Browse files Browse the repository at this point in the history
Close #3054
  • Loading branch information
shaluyadav13 authored and develar committed Jul 3, 2018
1 parent 7e0b782 commit 703a1fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/electron-builder-lib/src/targets/nsis/nsisUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const nsisTemplatesDir = getTemplatePath("nsis")
export const NSIS_PATH = new Lazy(() => {
const custom = process.env.ELECTRON_BUILDER_NSIS_DIR
if (custom != null && custom.length > 0) {
return Promise.resolve(custom)
return Promise.resolve(custom.trim())
}
// noinspection SpellCheckingInspection
return getBinFromGithub("nsis", "3.0.3.1", "rYRTO0OqNStw1uFP1RJ4aCGyK+GCz4AIy4uSO3g/sPmuONYDPhp8B0Q6xUx4aTb8hLaFeWyvo7tsp++9nrMoSw==")
Expand Down Expand Up @@ -55,7 +55,7 @@ export class AppPackageHelper {
}

const filesToDelete: Array<string> = []
for (const [info, isDelete] of this.infoToIsDelete.entries()) {
for (const [info, isDelete] of this.infoToIsDelete.entries()) {
if (isDelete) {
filesToDelete.push(info.path)
}
Expand Down

0 comments on commit 703a1fb

Please sign in to comment.