From 7749f8ad327eb2da9f8f28b78fdf4c9958c5e586 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 21 Aug 2025 15:57:13 +0000 Subject: [PATCH] [AUTO]Update CJS script Files changed: M dist/index.js M src/index.js --- dist/index.js | 12 ++++++++++++ src/index.js | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 6f1feae..de04c9c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -27431,6 +27431,7 @@ var __webpack_exports__ = {}; + const workspacePath = process.env.GITHUB_WORKSPACE; const options = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getMultilineInput("options"); const path = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput("path"); @@ -27456,6 +27457,17 @@ async function run() { str.replace(/(["'])/g, "$1"), ); + (0,child_process__WEBPACK_IMPORTED_MODULE_2__.exec)( + `winget install --id JRSoftware.InnoSetup -e -s winget -h`, + (execError, stdout, stderr) => { + console.log(stdout, stderr); + if (execError) { + _actions_core__WEBPACK_IMPORTED_MODULE_0__.setFailed(`Failed to install Inno Setup: ${stderr}`); + process.exit(execError.code || 1); + } + }, + ); + (0,child_process__WEBPACK_IMPORTED_MODULE_2__.execFile)( `${process.env["ProgramFiles(x86)"]}\\Inno Setup 6\\iscc.exe`, [...escapedOptions, `${workspacePath}\\${path}`], diff --git a/src/index.js b/src/index.js index 0fa4545..ae7c141 100644 --- a/src/index.js +++ b/src/index.js @@ -31,7 +31,7 @@ async function run() { exec( `winget install --id JRSoftware.InnoSetup -e -s winget -h`, (execError, stdout, stderr) => { - console.log(stdout,stderr); + console.log(stdout, stderr); if (execError) { core.setFailed(`Failed to install Inno Setup: ${stderr}`); process.exit(execError.code || 1);