oclif 4.22.15 → 4.22.17
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 +11 -2
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
package/lib/commands/pack/win.js
CHANGED
|
@@ -92,7 +92,16 @@ Section "${config.name} CLI \${VERSION}"
|
|
|
92
92
|
SetOutPath $INSTDIR
|
|
93
93
|
File /r bin
|
|
94
94
|
File /r client
|
|
95
|
-
|
|
95
|
+
|
|
96
|
+
; Use explicit System32/Sysnative path to cmd.exe for security
|
|
97
|
+
StrCpy $0 "$WINDIR\\System32\\cmd.exe" ; Try System32 first
|
|
98
|
+
IfFileExists "$0" path_is_safe
|
|
99
|
+
StrCpy $0 "$WINDIR\\Sysnative\\cmd.exe" ; Try Sysnative for WOW64
|
|
100
|
+
IfFileExists "$0" path_is_safe
|
|
101
|
+
MessageBox MB_OK|MB_ICONSTOP "Error: Could not find system cmd.exe. Installation cannot continue."
|
|
102
|
+
Abort
|
|
103
|
+
|
|
104
|
+
path_is_safe:
|
|
96
105
|
|
|
97
106
|
WriteRegStr HKCU "Software\\${config.dirname}" "" $INSTDIR
|
|
98
107
|
WriteUninstaller "$INSTDIR\\Uninstall.exe"
|
|
@@ -112,7 +121,7 @@ Section "Set PATH to ${config.name}"
|
|
|
112
121
|
SectionEnd
|
|
113
122
|
|
|
114
123
|
Section ${defenderOptional ? '/o ' : ''}"${hideDefenderOption ? '-' : ''}Add %LOCALAPPDATA%\\${config.dirname} to Windows Defender exclusions (highly recommended for performance!)"
|
|
115
|
-
|
|
124
|
+
ExecWait '"$0" /C powershell -ExecutionPolicy Bypass -Command "$\\"& {Add-MpPreference -ExclusionPath $\\"$LOCALAPPDATA\\${config.dirname}$\\"}$\\"" -FFFeatureOff SW_HIDE'
|
|
116
125
|
SectionEnd
|
|
117
126
|
|
|
118
127
|
Section "Uninstall"
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oclif",
|
|
3
3
|
"description": "oclif: create your own CLI",
|
|
4
|
-
"version": "4.22.
|
|
4
|
+
"version": "4.22.17",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bin": {
|
|
7
7
|
"oclif": "bin/run.js"
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
"bugs": "https://github.com/oclif/oclif/issues",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@aws-sdk/client-cloudfront": "^3.879.0",
|
|
12
|
-
"@aws-sdk/client-s3": "^3.
|
|
12
|
+
"@aws-sdk/client-s3": "^3.879.0",
|
|
13
13
|
"@inquirer/confirm": "^3.1.22",
|
|
14
14
|
"@inquirer/input": "^2.2.4",
|
|
15
15
|
"@inquirer/select": "^2.5.0",
|
|
16
16
|
"@oclif/core": "^4.5.2",
|
|
17
17
|
"@oclif/plugin-help": "^6.2.32",
|
|
18
|
-
"@oclif/plugin-not-found": "^3.2.
|
|
18
|
+
"@oclif/plugin-not-found": "^3.2.67",
|
|
19
19
|
"@oclif/plugin-warn-if-update-available": "^3.1.46",
|
|
20
20
|
"ansis": "^3.16.0",
|
|
21
21
|
"async-retry": "^1.3.3",
|