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
2024-12-23 15:17:05 +01:00
committed by GitHub
parent d0e8d6bd5f
commit 3574c46440

View File

@@ -23,10 +23,8 @@ 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) {
// Escaping quotes in the options array
const escapedOptions = options.map((str) => const escapedOptions = options.map(str => str.replace(/(["'])/g, '$1'));
str.replace(/(["'])/g, '$1')),
);
execFile( execFile(
`${process.env["ProgramFiles(x86)"]}\\Inno Setup 6\\iscc.exe`, `${process.env["ProgramFiles(x86)"]}\\Inno Setup 6\\iscc.exe`,