[all] fixes for windows

This commit is contained in:
2019-09-03 20:56:23 +03:00
parent 414099bd67
commit 7fa0174a7b
11 changed files with 117 additions and 69 deletions

View File

@@ -4,7 +4,6 @@ const os = require('os');
const path = require('path');
const Sdk = require('./sdk');
const exec = require('./exec');
const Env = require('./env');
const template = require('lodash.template');
class InnoSetup extends Sdk {
@@ -21,14 +20,14 @@ class InnoSetup extends Sdk {
let result = super.prepare(strip);
if (!this.prepared) {
result = result.then(() => {
return exec(this.path, 'is.exe /VERYSILENT /SUPPRESSMSGBOXES');
return exec(this.path, `is.exe /VERYSILENT /SUPPRESSMSGBOXES /DIR=${this.path}`);
});
}
return result;
}
get isccBin() {
return path.join(Env.get('ProgramFiles(x86)'), `Inno Setup ${this.version}`, 'ISCC.exe')
return path.join(this.path, 'ISCC.exe')
}
get prepared() {