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:
8
dist/index.js
vendored
8
dist/index.js
vendored
@@ -27314,6 +27314,10 @@ const workspacePath = process.env.GITHUB_WORKSPACE;
|
||||
const options = core.getMultilineInput("options");
|
||||
const path = core.getInput("path");
|
||||
|
||||
const sanitizeArgument = (arg) => {
|
||||
return arg.replace(/\\"/g, '"');
|
||||
};
|
||||
|
||||
let repoError;
|
||||
let platformError;
|
||||
|
||||
@@ -27331,9 +27335,11 @@ async function run() {
|
||||
const workspaceNotEmpty = (await fs.readdir(workspacePath)).length > 0;
|
||||
|
||||
if (workspaceExists && workspaceNotEmpty) {
|
||||
const sanitizedOptions = options.map(sanitizeArgument);
|
||||
|
||||
execFile(
|
||||
`${process.env["ProgramFiles(x86)"]}\\Inno Setup 6\\iscc.exe`,
|
||||
[...options, `${workspacePath}\\${path}`],
|
||||
[...sanitizedOptions, `${workspacePath}\\${path}`],
|
||||
(execError, stdout, stderr) => {
|
||||
console.log(stdout);
|
||||
if (execError) {
|
||||
|
||||
Reference in New Issue
Block a user