From 20714c3b8e29b2b6c9ca9966f1ec79bbb8f20725 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 21 Aug 2025 19:51:49 +0000 Subject: [PATCH] [AUTO]Update CJS script Files changed: M dist/index.js M src/index.js --- dist/index.js | 4 +--- src/index.js | 10 +++++----- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/dist/index.js b/dist/index.js index 1b6c9ab..2a0597e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -27467,9 +27467,7 @@ async function run() { // Install Inno Setup silently try { - const { stdout, stderr } = await execPromise( - `winget install --id JRSoftware.InnoSetup -e -s winget -h`, - ); + const { stdout, stderr } = await execPromise(`choco install innosetup`); console.log(stdout); console.error(stderr); } catch (err) { diff --git a/src/index.js b/src/index.js index d89ff7d..4ee2ff2 100644 --- a/src/index.js +++ b/src/index.js @@ -29,7 +29,7 @@ async function run() { const files = await fs.readdir(workspacePath); if (files.length === 0) { throw new Error( - "The repository was not cloned. Please specify the actions/checkout action before this step." + "The repository was not cloned. Please specify the actions/checkout action before this step.", ); } @@ -37,13 +37,13 @@ async function run() { // Install Inno Setup silently try { - const { stdout, stderr } = await execPromise( - `choco install innosetup` - ); + const { stdout, stderr } = await execPromise(`choco install innosetup`); console.log(stdout); console.error(stderr); } catch (err) { - throw new Error(`Failed to install Inno Setup: ${err.stderr || err.message}`); + throw new Error( + `Failed to install Inno Setup: ${err.stderr || err.message}`, + ); } // Run Inno Setup Compiler