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

Update index.js

This commit is contained in:
Minionguyjpro
2023-12-11 15:25:41 +01:00
committed by GitHub
parent 224126057d
commit 741d876485

2
dist/index.js vendored
View File

@@ -10,7 +10,7 @@ const path = core.getInput('path');
var exec = require('child_process').exec; var exec = require('child_process').exec;
if (process.platform === 'win32') { if (process.platform === 'win32') {
if (workspacePath && workspacePath.trim() !== '') { if (workspacePath && fs.existsSync(workspacePath) && fs.lstatSync(workspacePath).isDirectory()) {
exec(`"%PROGRAMFILES(X86)%\\Inno Setup 6\\iscc.exe" ${options} "${workspacePath}\\${path}"`, { stdio: 'ignore' }, function (error, stdout, stderr) { exec(`"%PROGRAMFILES(X86)%\\Inno Setup 6\\iscc.exe" ${options} "${workspacePath}\\${path}"`, { stdio: 'ignore' }, function (error, stdout, stderr) {
console.log(stdout); console.log(stdout);
console.log(stderr); console.log(stderr);