mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
search for exact wat2wasm executable
This commit is contained in:
parent
72732a2829
commit
01565f090c
@ -107,7 +107,8 @@ class Wat2Wasm {
|
|||||||
if( file.isDirectory() ) {
|
if( file.isDirectory() ) {
|
||||||
searchExecuteable( file );
|
searchExecuteable( file );
|
||||||
} else {
|
} else {
|
||||||
if( file.getName().contains( "wat2wasm" ) ) {
|
String name = file.getName();
|
||||||
|
if( name.equals( "wat2wasm" ) || name.equals( "wat2wasm.exe" ) ) {
|
||||||
command = file.getAbsolutePath();
|
command = file.getAbsolutePath();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user