mirror of
https://github.com/Minionguyjpro/Inno-Setup-Action
synced 2026-02-18 09:31:19 +01:00
[AUTO]Update CJS script
Files changed: M dist/index.js M src/index.js
This commit is contained in:
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -27467,9 +27467,7 @@ async function run() {
|
|||||||
|
|
||||||
// Install Inno Setup silently
|
// Install Inno Setup silently
|
||||||
try {
|
try {
|
||||||
const { stdout, stderr } = await execPromise(
|
const { stdout, stderr } = await execPromise(`choco install innosetup`);
|
||||||
`winget install --id JRSoftware.InnoSetup -e -s winget -h`,
|
|
||||||
);
|
|
||||||
console.log(stdout);
|
console.log(stdout);
|
||||||
console.error(stderr);
|
console.error(stderr);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
10
src/index.js
10
src/index.js
@@ -29,7 +29,7 @@ async function run() {
|
|||||||
const files = await fs.readdir(workspacePath);
|
const files = await fs.readdir(workspacePath);
|
||||||
if (files.length === 0) {
|
if (files.length === 0) {
|
||||||
throw new Error(
|
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
|
// Install Inno Setup silently
|
||||||
try {
|
try {
|
||||||
const { stdout, stderr } = await execPromise(
|
const { stdout, stderr } = await execPromise(`choco install innosetup`);
|
||||||
`choco install innosetup`
|
|
||||||
);
|
|
||||||
console.log(stdout);
|
console.log(stdout);
|
||||||
console.error(stderr);
|
console.error(stderr);
|
||||||
} catch (err) {
|
} 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
|
// Run Inno Setup Compiler
|
||||||
|
|||||||
Reference in New Issue
Block a user