Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit b61c7ea

Browse files
committed
fix-jsbundle-release
1 parent 446dc97 commit b61c7ea

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

CodePushPackage.m

Lines changed: 4 additions & 8 deletions
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)