1
0
mirror of https://github.com/Minionguyjpro/Inno-Setup-Action synced 2026-02-18 09:31:19 +01:00
Files
inno-setup/dist/index.js
Minionguyjpro f82eb0b576 Update index.js
2023-07-08 14:40:57 +02:00

21 lines
584 B
JavaScript

const core = require('@actions/core');
// eslint-disable-next-line no-unused-vars
const github = require('@actions/github');
const options = core.getInput('options');
const path = core.getInput('path');
var exec = require('child_process').exec;
if (process.platform === 'win32') {
exec(`"%PROGRAMFILES(X86)%\\Inno Setup 6\\iscc.exe" ${options} "${path}"`,
function (error, stdout, stderr) {
console.log(stdout);
console.log(stderr);
}
)} else {
const code = 1;
console.error('Error: this action is only supported on Windows!')
process.exit(code);
}