Fixed bug with run-android on windows (#1229)

This commit is contained in:
Artem Egorov
2018-03-14 16:56:37 +03:00
committed by GitHub
parent e66a1d1220
commit 9c5c0c3706
2 changed files with 584 additions and 525 deletions

1101
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -28,10 +28,10 @@ var assetsDir = process.argv[4];
var tempFileName = process.argv[5];
var oldFileToModifiedTimeMap = {};
var tempFileLocalPath = null;
if (tempFileName) {
var tempFileLocalPath = path.join(require("os").tmpdir(), tempFileName);
tempFileLocalPath = path.join(require("os").tmpdir(), tempFileName);
oldFileToModifiedTimeMap = require(tempFileLocalPath);
fs.unlinkSync(tempFileLocalPath);
}
var resourceFiles = [];
@@ -118,4 +118,8 @@ function addFileToManifest(folder, assetFile, manifest, done) {
function fileExists(file) {
try { return fs.statSync(file).isFile(); }
catch (e) { return false; }
}
if (tempFileLocalPath) {
fs.unlinkSync(tempFileLocalPath);
}