mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-19 18:13:46 +08:00
Ignoring __MACOSX folder too
This commit is contained in:
@@ -20,14 +20,11 @@ NSString * const ManifestFolderPrefix = @"CodePush";
|
||||
}
|
||||
|
||||
for (NSString *fileName in folderFiles) {
|
||||
#if TARGET_IPHONE_SIMULATOR
|
||||
// If the user is running this in a simulator, there is a chance
|
||||
// that the .DS_Store file will mess up the calculated hash
|
||||
// We must skip this file.
|
||||
if ([fileName isEqualToString:@".DS_Store"]) {
|
||||
// We must skip the macOS generated files.
|
||||
if ([fileName isEqualToString:@".DS_Store"] || [fileName isEqualToString:@"__MACOSX"]) {
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
|
||||
NSString *fullFilePath = [folderPath stringByAppendingPathComponent:fileName];
|
||||
NSString *relativePath = [pathPrefix stringByAppendingPathComponent:fileName];
|
||||
BOOL isDir = NO;
|
||||
|
||||
Reference in New Issue
Block a user