Skip to content

Commit b857d6c

Browse files
authored
Fix macOS case
1 parent 35a89ad commit b857d6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@
901901
document.querySelector("#status").style.color = "red";
902902
return;
903903
}
904-
child_process.exec(`kill -9 $(ps -eo pid,command | grep 'dist/${name}.app/Contents/macOS/nwjs' | grep -v grep | awk '{print $1}')`);
904+
child_process.exec(`kill -9 $(ps -eo pid,command | grep 'dist/${name}.app/Contents/MacOS/nwjs' | grep -v grep | awk '{print $1}')`);
905905
document.querySelector("#status").innerText = text("ready");
906906
document.querySelector("#status").style.color = "lime";
907907
}
@@ -1055,3 +1055,4 @@
10551055
window.addEventListener("DOMContentLoaded", openCompiler);
10561056
})();
10571057

1058+

0 commit comments

Comments
 (0)