diff --git a/compiler/npm-install.js b/compiler/npm-install.js index fb691ef30bcc528656675cb0e374345058fc755c..32ae7ec450f5e4d1aef3a9b6615c4ba4541c7a08 100644 --- a/compiler/npm-install.js +++ b/compiler/npm-install.js @@ -26,11 +26,11 @@ if (!fs.existsSync(arkDir)) { let isWin = !1; let isMac = !1; -if (fs.existsSync(path.join(arkDir, "build"))) { +if (fs.existsSync(path.join(arkDir, "build-win"))) { isWin = !0; -} else if (fs.existsSync(path.join(arkDir, "build-win"))) { +} else if (fs.existsSync(path.join(arkDir, "build-mac"))) { isMac = !0; -} else if (!fs.existsSync(path.join(arkDir, "build-mac"))) { +} else if (!fs.existsSync(path.join(arkDir, "build"))) { throw Error("Error: find build fail").message; }