1
0
mirror of https://github.com/Minionguyjpro/Inno-Setup-Action synced 2026-02-18 17:41:18 +01:00

Update index.js

This commit is contained in:
Minionguyjpro
2023-12-11 15:57:43 +01:00
committed by GitHub
parent 033f41c403
commit f9ddbe9a22

12
dist/index.js vendored
View File

@@ -13,19 +13,13 @@ if (process.platform === 'win32') {
if (fs.existsSync(process.env.GITHUB_WORKSPACE) && fs.readdirSync(workspacePath).length > 0) { if (fs.existsSync(process.env.GITHUB_WORKSPACE) && fs.readdirSync(workspacePath).length > 0) {
exec(`"%PROGRAMFILES(X86)%\\Inno Setup 6\\iscc.exe" ${options} "${workspacePath}\\${path}"`, { stdio: 'ignore' }, function (error, stdout, stderr) { exec(`"%PROGRAMFILES(X86)%\\Inno Setup 6\\iscc.exe" ${options} "${workspacePath}\\${path}"`, { stdio: 'ignore' }, function (error, stdout, stderr) {
console.log(stdout); console.log(stdout);
console.log(stderr);
if (error) { if (error) {
const code = error.code || 1; core.error(stderr);
process.exit(code);
} }
}); });
} else { } else {
const code = 1; core.error('Error: The repository was not cloned. Please specify the actions/checkout action before this step.');
console.error('Error: The repository was not cloned. Please specify the actions/checkout action before this step.');
process.exit(code);
} }
} else { } else {
const code = 1; core.error('Error: This action is only supported on Windows!');
console.error('Error: This action is only supported on Windows!');
process.exit(code);
} }