wine support

This commit is contained in:
Partouf
2018-10-31 15:12:36 +01:00
parent 6391cac17b
commit b8feb482de
+8
View File
@@ -48,6 +48,14 @@ class BaseTool {
}
exec(toolExe, args, options) {
options = options || {};
if (toolExe.match(/\.exe$/i)) {
args.unshift(toolExe);
toolExe = this.env.ceProps("wine");
options.env = options.env || {};
options.env.WINEDLLOVERRIDES = "vcruntime140=b";
options.env.WINEDEBUG = "-all";
}
return exec.execute(toolExe, args, options);
}