mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
fix node location on Linux
This commit is contained in:
parent
f755d6fa1b
commit
9bf768c97b
@ -270,7 +270,15 @@ public class WasmRule extends TemporaryFolder {
|
||||
*/
|
||||
private ProcessBuilder nodeJsCommand() {
|
||||
String command = System.getProperty( "node.dir" );
|
||||
command = command == null ? "node" : command + "/node";
|
||||
if( command == null ) {
|
||||
command = "node";
|
||||
} else {
|
||||
if( System.getProperty("os.name").toLowerCase().indexOf( "win" ) >= 0 ) {
|
||||
command += "/node";
|
||||
} else {
|
||||
command += "/bin/node";
|
||||
}
|
||||
}
|
||||
return new ProcessBuilder( command, "--experimental-wasm-se", nodeScript.getAbsolutePath() );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user