oclif 4.4.6 → 4.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commands/pack/win.js +4 -4
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/lib/commands/pack/win.js
CHANGED
|
@@ -22,7 +22,7 @@ if exist "%LOCALAPPDATA%\\${config.dirname}\\client\\bin\\${additionalCLI ?? con
|
|
|
22
22
|
"%~dp0\\..\\client\\bin\\node.exe" "%~dp0\\..\\client\\${additionalCLI ? `${additionalCLI}\\bin\\run` : 'bin\\run'}" %*
|
|
23
23
|
)
|
|
24
24
|
`,
|
|
25
|
-
nsis: ({ arch, config, customization,
|
|
25
|
+
nsis: ({ arch, config, customization, defenderOptional, hideDefenderOption, }) => `!include MUI2.nsh
|
|
26
26
|
|
|
27
27
|
!define Version '${config.version.split('-')[0]}'
|
|
28
28
|
Name "${config.name}"
|
|
@@ -75,7 +75,7 @@ Section "Set PATH to ${config.name}"
|
|
|
75
75
|
Call AddToPath
|
|
76
76
|
SectionEnd
|
|
77
77
|
|
|
78
|
-
Section ${
|
|
78
|
+
Section ${defenderOptional ? '/o ' : ''}"${hideDefenderOption ? '-' : ''}Add %LOCALAPPDATA%\\${config.dirname} to Windows Defender exclusions (highly recommended for performance!)"
|
|
79
79
|
ExecShell "" '"$0"' "/C powershell -ExecutionPolicy Bypass -Command $\\"& {Add-MpPreference -ExclusionPath $\\"$LOCALAPPDATA\\${config.dirname}$\\"}$\\" -FFFeatureOff" SW_HIDE
|
|
80
80
|
SectionEnd
|
|
81
81
|
|
|
@@ -252,8 +252,8 @@ the CLI should already exist in a directory named after the CLI that is the root
|
|
|
252
252
|
config,
|
|
253
253
|
customization: nsisCustomization,
|
|
254
254
|
// hiding it also unchecks it
|
|
255
|
-
|
|
256
|
-
hideDefenderOption: flags['
|
|
255
|
+
defenderOptional: flags['defender-exclusion'] === 'hidden' || flags['defender-exclusion'] === 'unchecked',
|
|
256
|
+
hideDefenderOption: flags['defender-exclusion'] === 'hidden',
|
|
257
257
|
})),
|
|
258
258
|
...(config.binAliases
|
|
259
259
|
? config.binAliases.flatMap((alias) =>
|
package/oclif.manifest.json
CHANGED