1
0
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
M	src/index.js
This commit is contained in:
github-actions[bot]
2024-12-23 12:39:36 +00:00
parent 02233507cb
commit 17ed5ef90e
2 changed files with 12 additions and 5 deletions

View File

@@ -24,17 +24,19 @@ async function run() {
if (workspaceExists && workspaceNotEmpty) {
// Escaping quotes in the options array
const escapedOptions = options.map(str => str.replace(/(["'])/g, '\\$1'));
const escapedOptions = options.map((str) =>
str.replace(/(["'])/g, "\\$1"),
);
// Debugging output to check the escaped options
console.log('Escaped Options:', escapedOptions);
console.log("Escaped Options:", escapedOptions);
execFile(
`${process.env["ProgramFiles(x86)"]}\\Inno Setup 6\\iscc.exe`,
[...escapedOptions, `${workspacePath}\\${path}`],
(execError, stdout, stderr) => {
console.log('stdout:', stdout);
console.log('stderr:', stderr);
console.log("stdout:", stdout);
console.log("stderr:", stderr);
if (execError) {
core.setFailed(`Execution failed with error: ${stderr}`);
process.exit(execError.code || 1);