From 326a5d720e779bfb7e584fdc61138ca5eb530bd7 Mon Sep 17 00:00:00 2001 From: Minionguyjpro Date: Thu, 21 Aug 2025 21:51:09 +0200 Subject: [PATCH] Use Chocolatey over WinGet --- src/index.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/index.js b/src/index.js index a473035..d89ff7d 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." ); } @@ -38,14 +38,12 @@ async function run() { // Install Inno Setup silently try { const { stdout, stderr } = await execPromise( - `winget install --id JRSoftware.InnoSetup -e -s winget -h`, + `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