firefly-compiler 0.4.56 → 0.4.58
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/core/NodeSystem.ff
CHANGED
|
@@ -118,16 +118,14 @@ extend self: NodeSystem {
|
|
|
118
118
|
);
|
|
119
119
|
}
|
|
120
120
|
if(process.platform === 'win32') {
|
|
121
|
-
arguments_ = arguments_.map(argument =>
|
|
121
|
+
arguments_ = ['/C', ...[command_, ...arguments_].map(argument =>
|
|
122
122
|
argument.replaceAll(/([^A-Za-z0-9/_-])/g, "^$1")
|
|
123
|
-
);
|
|
124
|
-
command_ =
|
|
123
|
+
)];
|
|
124
|
+
command_ = process.env.ComSpec || 'cmd.exe';
|
|
125
125
|
}
|
|
126
126
|
const newProcess = childProcess.spawn(command_, arguments_, {
|
|
127
127
|
cwd: workingDirectory_.value_,
|
|
128
128
|
windowsHide: true,
|
|
129
|
-
windowsVerbatimArguments: true,
|
|
130
|
-
shell: process.platform === 'win32',
|
|
131
129
|
signal: $task.controller.signal,
|
|
132
130
|
killSignal: killSignal_,
|
|
133
131
|
env: environment,
|
|
@@ -370,16 +370,14 @@ export async function NodeSystem_execute$(self_, command_, arguments_, standardI
|
|
|
370
370
|
);
|
|
371
371
|
}
|
|
372
372
|
if(process.platform === 'win32') {
|
|
373
|
-
arguments_ = arguments_.map(argument =>
|
|
373
|
+
arguments_ = ['/C', ...[command_, ...arguments_].map(argument =>
|
|
374
374
|
argument.replaceAll(/([^A-Za-z0-9/_-])/g, "^$1")
|
|
375
|
-
);
|
|
376
|
-
command_ =
|
|
375
|
+
)];
|
|
376
|
+
command_ = process.env.ComSpec || 'cmd.exe';
|
|
377
377
|
}
|
|
378
378
|
const newProcess = childProcess.spawn(command_, arguments_, {
|
|
379
379
|
cwd: workingDirectory_.value_,
|
|
380
380
|
windowsHide: true,
|
|
381
|
-
windowsVerbatimArguments: true,
|
|
382
|
-
shell: process.platform === 'win32',
|
|
383
381
|
signal: $task.controller.signal,
|
|
384
382
|
killSignal: killSignal_,
|
|
385
383
|
env: environment,
|
package/package.json
CHANGED