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

Create index.js

This commit is contained in:
Minionguyjpro
2023-07-08 08:31:27 +00:00
parent ccfacf1083
commit beccd32062

20
dist/index.js vendored Normal file
View File

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