You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Change DEBUG_LOGGING env var for nsis installers as part of customNsisBinary config (#6729)
* Exposing `customNsisBinary` and changing env var for `debugLogging` so that it doesn't conflict with other custom nsis scripts that use `DEBUG_LOGGING` env var. Fixes#6715
Copy file name to clipboardexpand all lines: docs/generated/NsisOptions.md
+1
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,7 @@
59
59
<li><codeid="NsisOptions-unicode">unicode</code> = <code>true</code> Boolean - Whether to create <ahref="http://nsis.sourceforge.net/Docs/Chapter1.html#intro-unicode">Unicode installer</a>.</li>
60
60
<li><codeid="NsisOptions-guid">guid</code> String | “undefined” - See <ahref="../configuration/nsis#guid-vs-application-name">GUID vs Application Name</a>.</li>
61
61
<li><codeid="NsisOptions-warningsAsErrors">warningsAsErrors</code> = <code>true</code> Boolean - If <code>warningsAsErrors</code> is <code>true</code> (default): NSIS will treat warnings as errors. If <code>warningsAsErrors</code> is <code>false</code>: NSIS will allow warnings.</li>
62
+
<li><codeid="NsisOptions-customNsisBinary">customNsisBinary</code> module:app-builder-lib/out/targets/nsis/nsisOptions.CustomNsisBinary | “undefined” - Allows you to provide your own <code>makensis</code>, such as one with support for debug logging via LogSet and LogText. (Logging also requires option <code>debugLogging = true</code>)</li>
62
63
<li><codeid="NsisOptions-runAfterFinish">runAfterFinish</code> = <code>true</code> Boolean - Whether to run the installed application after finish. For assisted installer corresponding checkbox will be removed.</li>
Copy file name to clipboardexpand all lines: packages/app-builder-lib/scheme.json
+13-24
Original file line number
Diff line number
Diff line change
@@ -419,6 +419,13 @@
419
419
"string"
420
420
]
421
421
},
422
+
"debugLogging": {
423
+
"description": "Whether or not to enable NSIS logging for debugging.\nNote: Requires a debug-enabled NSIS build.\nelectron-builder's included `makensis` does not natively support debug-enabled NSIS installers currently, you must supply your own via `customNsisBinary?: CustomNsisBinary`\nIn your custom nsis scripts, you can leverage this functionality via `LogSet` and `LogText`",
"description": "Whether or not to enable NSIS logging for debugging.\nNote: Requires a debug-enabled NSIS build.\nelectron-builder's included `makensis` only supports building debug-enabled NSIS installers on Windows currently\nhttps://github.com/electron-userland/electron-builder/issues/5119#issuecomment-811353612",
3653
-
"type": [
3654
-
"null",
3655
-
"boolean"
3656
-
]
3656
+
],
3657
+
"description": "Allows you to provide your own `makensis`, such as one with support for debug logging via LogSet and LogText. (Logging also requires option `debugLogging = true`)"
3657
3658
},
3658
3659
"deleteAppDataOnUninstall": {
3659
3660
"default": false,
@@ -3970,14 +3971,8 @@
3970
3971
{
3971
3972
"type": "null"
3972
3973
}
3973
-
]
3974
-
},
3975
-
"debugLogging": {
3976
-
"description": "Whether or not to enable NSIS logging for debugging.\nNote: Requires a debug-enabled NSIS build.\nelectron-builder's included `makensis` only supports building debug-enabled NSIS installers on Windows currently\nhttps://github.com/electron-userland/electron-builder/issues/5119#issuecomment-811353612",
3977
-
"type": [
3978
-
"null",
3979
-
"boolean"
3980
-
]
3974
+
],
3975
+
"description": "Allows you to provide your own `makensis`, such as one with support for debug logging via LogSet and LogText. (Logging also requires option `debugLogging = true`)"
3981
3976
},
3982
3977
"deleteAppDataOnUninstall": {
3983
3978
"default": false,
@@ -4560,14 +4555,8 @@
4560
4555
{
4561
4556
"type": "null"
4562
4557
}
4563
-
]
4564
-
},
4565
-
"debugLogging": {
4566
-
"description": "Whether or not to enable NSIS logging for debugging.\nNote: Requires a debug-enabled NSIS build.\nelectron-builder's included `makensis` only supports building debug-enabled NSIS installers on Windows currently\nhttps://github.com/electron-userland/electron-builder/issues/5119#issuecomment-811353612",
4567
-
"type": [
4568
-
"null",
4569
-
"boolean"
4570
-
]
4558
+
],
4559
+
"description": "Allows you to provide your own `makensis`, such as one with support for debug logging via LogSet and LogText. (Logging also requires option `debugLogging = true`)"
4571
4560
},
4572
4561
"guid": {
4573
4562
"description": "See [GUID vs Application Name](../configuration/nsis#guid-vs-application-name).",
* Whether or not to enable NSIS logging for debugging.
22
+
* Note: Requires a debug-enabled NSIS build.
23
+
* electron-builder's included `makensis` does not natively support debug-enabled NSIS installers currently, you must supply your own via `customNsisBinary?: CustomNsisBinary`
24
+
* In your custom nsis scripts, you can leverage this functionality via `LogSet` and `LogText`
* Allows you to provide your own `makensis`, such as one with support for debug logging via LogSet and LogText. (Logging also requires option `debugLogging = true`)
52
54
*/
53
55
readonlycustomNsisBinary?: CustomNsisBinary|null
54
-
55
-
/**
56
-
* Whether or not to enable NSIS logging for debugging.
57
-
* Note: Requires a debug-enabled NSIS build.
58
-
* electron-builder's included `makensis` only supports building debug-enabled NSIS installers on Windows currently
0 commit comments