Skip to content

Commit

Permalink
fix(nsis): fix cli config error when use Boolean value in -c.nsis con…
Browse files Browse the repository at this point in the history
…fig (#4528)
  • Loading branch information
codeudan authored and develar committed Jan 16, 2020
1 parent 2229b28 commit ac8e9aa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/electron-builder/src/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,14 @@ export function normalizeOptions(args: CliOptions): BuildOptions {
if (config.mac != null) {
coerceValue(config.mac, "identity")
}

// fix Boolean type by coerceTypes
if (config.nsis != null) {
coerceTypes(config.nsis);
}
if (config.nsisWeb != null) {
coerceTypes(config.nsisWeb);
}
}

if ("project" in r && !("projectDir" in result)) {
Expand Down

0 comments on commit ac8e9aa

Please sign in to comment.