mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-19 01:46:00 +08:00
Fixed bug with run-android on windows (#1229)
This commit is contained in:
1101
package-lock.json
generated
1101
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user