mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 23:44:59 +01:00
of course nmake is special too
This commit is contained in:
parent
0ccc29e504
commit
161a76de46
@ -34,15 +34,15 @@ module.exports = async function(hakEnv, moduleInfo) {
|
|||||||
|
|
||||||
const tools = [];
|
const tools = [];
|
||||||
if (hakEnv.isWin()) {
|
if (hakEnv.isWin()) {
|
||||||
tools.push('perl'); // for openssl configure
|
tools.push(['perl', '--version']); // for openssl configure
|
||||||
tools.push('nmake');
|
tools.push(['nmake', '/?']);
|
||||||
} else {
|
} else {
|
||||||
tools.push('make');
|
tools.push(['make', '--version']);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const tool of tools) {
|
for (const tool of tools) {
|
||||||
await new Promise((resolve, reject) => {
|
await new Promise((resolve, reject) => {
|
||||||
const proc = childProcess.spawn(tool, ['--version'], {
|
const proc = childProcess.spawn(tool[0], tool.slice(1), {
|
||||||
stdio: ['ignore'],
|
stdio: ['ignore'],
|
||||||
});
|
});
|
||||||
proc.on('exit', (code) => {
|
proc.on('exit', (code) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user