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:
12
dist/index.js
vendored
12
dist/index.js
vendored
@@ -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}`],
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user