mirror of
https://github.com/Minionguyjpro/Inno-Setup-Action
synced 2026-02-18 17:41:18 +01:00
[AUTO]Update CJS script
Files changed: M dist/index.js
This commit is contained in:
26
dist/index.js
vendored
26
dist/index.js
vendored
@@ -27331,17 +27331,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(" ")}`;
|
||||||
console.log(stdout);
|
|
||||||
if (execError) {
|
// Log the full command being executed
|
||||||
core.setFailed(`Execution failed with error: ${stderr}`);
|
console.log(`Executing command: ${fullCommand}`);
|
||||||
process.exit(execError.code || 1);
|
|
||||||
}
|
execFile(command, commandArgs, (execError, stdout, stderr) => {
|
||||||
},
|
console.log(stdout);
|
||||||
);
|
if (execError) {
|
||||||
|
core.setFailed(`Execution failed with error: ${stderr}`);
|
||||||
|
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.",
|
||||||
|
|||||||
Reference in New Issue
Block a user