1
0
mirror of https://github.com/Minionguyjpro/Inno-Setup-Action synced 2026-02-18 17:41:18 +01:00

Hide stdout, stderr and exec output

This commit is contained in:
Minionguyjpro
2023-07-08 08:59:36 +00:00
parent e69d35d2df
commit fc3a3650cb

8
dist/index.js vendored
View File

@@ -9,12 +9,10 @@ var exec = require('child_process').exec;
if (process.platform === 'win32') { if (process.platform === 'win32') {
exec(`\"%PROGRAMFILES(X86)%\\Inno Setup 6\\iscc.exe\" \"${path}\"`, exec(`\"%PROGRAMFILES(X86)%\\Inno Setup 6\\iscc.exe\" \"${path}\"`,
function (error, stdout, stderr) { function (error, stdout, stderr) {
console.log('stdout: ' + stdout); console.log(stdout);
console.log('stderr: ' + stderr); console.log(stderr);
if (error !== null) {
console.log('exec error: ' + error);
} }
})} else { )} else {
console.error('Error: this action is only supported on Windows!') console.error('Error: this action is only supported on Windows!')
code = 1; process.exit(code); code = 1; process.exit(code);
} }