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

Temporary change in index.js (for debugging purposes)

This commit is contained in:
Minionguyjpro
2024-12-23 11:22:25 +01:00
committed by GitHub
parent 4645ebe76e
commit 4087cb30fc

View File

@@ -23,17 +23,21 @@ async function run() {
const workspaceNotEmpty = (await fs.readdir(workspacePath)).length > 0; const workspaceNotEmpty = (await fs.readdir(workspacePath)).length > 0;
if (workspaceExists && workspaceNotEmpty) { if (workspaceExists && workspaceNotEmpty) {
execFile( // Capture the entire command as a string
`${process.env["ProgramFiles(x86)"]}\\Inno Setup 6\\iscc.exe`, const command = `${process.env["ProgramFiles(x86)"]}\\Inno Setup 6\\iscc.exe`;
[...options, `${workspacePath}\\${path}`], const commandArgs = [...options, `${workspacePath}\\${path}`];
(execError, stdout, stderr) => { const fullCommand = `${command} ${commandArgs.join(" ")}`;
// Log the full command being executed
console.log(`Executing command: ${fullCommand}`);
execFile(command, commandArgs, (execError, stdout, stderr) => {
console.log(stdout); console.log(stdout);
if (execError) { if (execError) {
core.setFailed(`Execution failed with error: ${stderr}`); core.setFailed(`Execution failed with error: ${stderr}`);
process.exit(execError.code || 1); process.exit(execError.code || 1);
} }
}, });
);
} else { } else {
throw new Error( throw new Error(
"The repository was not cloned. Please specify the actions/checkout action before this step.", "The repository was not cloned. Please specify the actions/checkout action before this step.",