mirror of
https://github.com/msojocs/wx-compiler.git
synced 2025-07-19 00:00:04 +08:00
fix: version check
This commit is contained in:
parent
4bb1d2401f
commit
66ea0d2668
@ -78,7 +78,11 @@ const wcc = (args: string[], projectPath: string): Promise<string> => {
|
|||||||
Buffer.concat(spwanData).toString()
|
Buffer.concat(spwanData).toString()
|
||||||
);
|
);
|
||||||
// process.stderr.write(Buffer.concat(spwanData).toString());
|
// process.stderr.write(Buffer.concat(spwanData).toString());
|
||||||
reject(n);
|
reject({
|
||||||
|
code: n,
|
||||||
|
stdout: Buffer.concat(spwanData).toString(),
|
||||||
|
stderr: Buffer.concat(errData).toString(),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -17,8 +17,9 @@ describe("wcc - empty", function () {
|
|||||||
{
|
{
|
||||||
w = (await windows.wcc(args, projectPath)).replace(/\r\n/g, '\n')
|
w = (await windows.wcc(args, projectPath)).replace(/\r\n/g, '\n')
|
||||||
}
|
}
|
||||||
catch(err){
|
catch(err: any){
|
||||||
console.error('error:', err)
|
console.error('error:', err)
|
||||||
|
w = err.stdout
|
||||||
}
|
}
|
||||||
const n = await linux.wcc(args, projectPath);
|
const n = await linux.wcc(args, projectPath);
|
||||||
const storagePath = path.resolve(
|
const storagePath = path.resolve(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user