From beccd32062ab7425bbe9190251fcbdd71382184c Mon Sep 17 00:00:00 2001 From: Minionguyjpro Date: Sat, 8 Jul 2023 08:31:27 +0000 Subject: [PATCH] Create index.js --- dist/index.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 dist/index.js diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..323cc29 --- /dev/null +++ b/dist/index.js @@ -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); +} \ No newline at end of file