Skip to content

Commit f65e5b4

Browse files
committed
Merge pull request #198 from Microsoft/fix-jsbundle-release
Fix single JS bundle release
2 parents e4491fd + b61c7ea commit f65e5b4

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

CodePushPackage.m

+4-8
Original file line numberDiff line numberDiff line change
@@ -348,14 +348,10 @@ + (void)downloadPackage:(NSDictionary *)updatePackage
348348
return;
349349
}
350350
} else {
351-
if ([[NSFileManager defaultManager] fileExistsAtPath:bundleFilePath]) {
352-
[[NSFileManager defaultManager] removeItemAtPath:bundleFilePath error:&error];
353-
if (error) {
354-
failCallback(error);
355-
return;
356-
}
357-
}
358-
351+
[[NSFileManager defaultManager] createDirectoryAtPath:newPackageFolderPath
352+
withIntermediateDirectories:YES
353+
attributes:nil
354+
error:&error];
359355
[[NSFileManager defaultManager] moveItemAtPath:downloadFilePath
360356
toPath:bundleFilePath
361357
error:&error];

0 commit comments

Comments
 (0)