Merge pull request #198 from Microsoft/fix-jsbundle-release

Fix single JS bundle release
This commit is contained in:
Geoffrey Goh
2016-02-12 16:27:25 -08:00

View File

@@ -348,14 +348,10 @@ NSString * const UnzippedFolderName = @"unzipped";
return;
}
} else {
if ([[NSFileManager defaultManager] fileExistsAtPath:bundleFilePath]) {
[[NSFileManager defaultManager] removeItemAtPath:bundleFilePath error:&error];
if (error) {
failCallback(error);
return;
}
}
[[NSFileManager defaultManager] createDirectoryAtPath:newPackageFolderPath
withIntermediateDirectories:YES
attributes:nil
error:&error];
[[NSFileManager defaultManager] moveItemAtPath:downloadFilePath
toPath:bundleFilePath
error:&error];