firefly-compiler 0.4.55 → 0.4.57
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,15 +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_ = 'cmd.exe';
|
|
125
125
|
}
|
|
126
126
|
const newProcess = childProcess.spawn(command_, arguments_, {
|
|
127
127
|
cwd: workingDirectory_.value_,
|
|
128
128
|
windowsHide: true,
|
|
129
|
-
shell: process.platform === 'win32',
|
|
130
129
|
signal: $task.controller.signal,
|
|
131
130
|
killSignal: killSignal_,
|
|
132
131
|
env: environment,
|
|
@@ -370,15 +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_ = 'cmd.exe';
|
|
377
377
|
}
|
|
378
378
|
const newProcess = childProcess.spawn(command_, arguments_, {
|
|
379
379
|
cwd: workingDirectory_.value_,
|
|
380
380
|
windowsHide: true,
|
|
381
|
-
shell: process.platform === 'win32',
|
|
382
381
|
signal: $task.controller.signal,
|
|
383
382
|
killSignal: killSignal_,
|
|
384
383
|
env: environment,
|
package/package.json
CHANGED