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

Update index.js

This commit is contained in:
Minionguyjpro
2023-12-11 16:23:35 +01:00
committed by GitHub
parent 8e98e53eb6
commit 0381c30320

3
dist/index.js vendored
View File

@@ -8,7 +8,8 @@ const path = core.getInput('path');
if (process.platform === 'win32') {
try {
if (fs.existsSync(workspacePath) && fs.readdirSync(workspacePath).length > 0) {
const { stderr } = require('child_process').execSync(`"%PROGRAMFILES(X86)%\\Inno Setup 6\\iscc.exe" ${options} "${workspacePath}\\${path}"`, { stdio: 'inherit' });
const { stdout, stderr } = require('child_process').execSync(`"%PROGRAMFILES(X86)%\\Inno Setup 6\\iscc.exe" ${options} "${workspacePath}\\${path}"`, { stdio: 'pipe' });
console.log(stdout);
if (stderr) {
throw new Error(stderr);
}