diff --git a/lib/gameinfo.js b/lib/gameinfo.js index 04cfc5b1..c1c85f70 100644 --- a/lib/gameinfo.js +++ b/lib/gameinfo.js @@ -298,7 +298,7 @@ GameInfo.prototype.checkRequiredFiles = (function() { checks = checks.concat(gameChecks); } - var fileNames = fileNames || readdirtree.sync(runtimeInfo.htmlPath); + fileNames = fileNames || readdirtree.sync(runtimeInfo.htmlPath); for (var ii = 0; ii < fileNames.length && foundCount < checks.length; ++ii) { var fileName = fileNames[ii].replace(/\\/g, '/'); checks.forEach(function(check, ndx) { // eslint-disable-line diff --git a/management/install.js b/management/install.js index 6c8ad52a..c62874f2 100644 --- a/management/install.js +++ b/management/install.js @@ -130,6 +130,7 @@ var install = function(releasePath, opt_destPath, opt_options) { var gameId = runtimeInfo.originalGameId; var safeGameId = releaseUtils.safeishName(gameId); var destBasePath; + var exePath; var fileExists = {}; entries.forEach(function(entry) { @@ -142,7 +143,7 @@ var install = function(releasePath, opt_destPath, opt_options) { // that are "installed" do. log("checking gametype: " + hftInfo.gameType); if (hftInfo.gameType.toLowerCase() === "unity3d") { - var exePath = platformInfo.exePath; + exePath = platformInfo.exePath; if (exePath) { exePath = strings.replaceParams(exePath, { gameId: safeGameId }); if (!fileExists[exePath]) { @@ -234,7 +235,7 @@ var install = function(releasePath, opt_destPath, opt_options) { // Set the executable bit if (hftInfo.gameType.toLowerCase() === "unity3d") { - var exePath = platformInfo.exePath; + exePath = platformInfo.exePath; if (exePath) { exePath = path.join(destBasePath, strings.replaceParams(exePath, { gameId: safeGameId })); if (!fs.existsSync(exePath)) {