mirror of
https://github.com/Minionguyjpro/Inno-Setup-Action
synced 2026-02-18 09:31:19 +01:00
Update index.js
This commit is contained in:
5
dist/index.js
vendored
5
dist/index.js
vendored
@@ -2,12 +2,13 @@ const core = require('@actions/core');
|
|||||||
const github = require('@actions/github');
|
const github = require('@actions/github');
|
||||||
const { exit } = require('process');
|
const { exit } = require('process');
|
||||||
|
|
||||||
|
const options = core.getInput('options');
|
||||||
const path = core.getInput('path');
|
const path = core.getInput('path');
|
||||||
|
|
||||||
var exec = require('child_process').exec;
|
var exec = require('child_process').exec;
|
||||||
|
|
||||||
if (process.platform === 'win32') {
|
if (process.platform === 'win32') {
|
||||||
exec(`"%PROGRAMFILES(X86)%\\Inno Setup 6\\iscc.exe" "${path}"`,
|
exec(`"%PROGRAMFILES(X86)%\\Inno Setup 6\\iscc.exe" ${options} "${path}"`,
|
||||||
function (error, stdout, stderr) {
|
function (error, stdout, stderr) {
|
||||||
console.log(stdout);
|
console.log(stdout);
|
||||||
console.log(stderr);
|
console.log(stderr);
|
||||||
@@ -15,4 +16,4 @@ exec(`"%PROGRAMFILES(X86)%\\Inno Setup 6\\iscc.exe" "${path}"`,
|
|||||||
)} else {
|
)} else {
|
||||||
console.error('Error: this action is only supported on Windows!')
|
console.error('Error: this action is only supported on Windows!')
|
||||||
code = 1; process.exit(code);
|
code = 1; process.exit(code);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user