mirror of
https://github.com/NohamR/Tweaks.git
synced 2026-07-11 22:41:44 +00:00
update
This commit is contained in:
@@ -78,4 +78,46 @@
|
||||
+ (id)containerWithIdentifier:(id)arg1 {
|
||||
return nil;
|
||||
}
|
||||
%end
|
||||
|
||||
%hook NSFileManager
|
||||
- (NSURL *)containerURLForSecurityApplicationGroupIdentifier:(NSString *)groupIdentifier {
|
||||
NSString *homeDirectory = NSHomeDirectory();
|
||||
NSString *containerBasePath = [homeDirectory stringByAppendingPathComponent:@"Documents/ApplicationGroupContainers"];
|
||||
NSURL *baseURL = [NSURL fileURLWithPath:containerBasePath isDirectory:YES];
|
||||
NSURL *containerURL = [baseURL URLByAppendingPathComponent:groupIdentifier];
|
||||
|
||||
NSFileManager *fileManager = [NSFileManager defaultManager];
|
||||
NSString *containerPath = [containerURL path];
|
||||
BOOL containerExists = [fileManager fileExistsAtPath:containerPath];
|
||||
|
||||
if (!containerExists) {
|
||||
NSError *error = nil;
|
||||
|
||||
[fileManager createDirectoryAtURL:containerURL
|
||||
withIntermediateDirectories:YES
|
||||
attributes:nil
|
||||
error:&error];
|
||||
|
||||
NSURL *appSupportURL = [containerURL URLByAppendingPathComponent:@"Library/Application Support"];
|
||||
[fileManager createDirectoryAtURL:appSupportURL
|
||||
withIntermediateDirectories:YES
|
||||
attributes:nil
|
||||
error:&error];
|
||||
|
||||
NSURL *cachesURL = [containerURL URLByAppendingPathComponent:@"Library/Caches"];
|
||||
[fileManager createDirectoryAtURL:cachesURL
|
||||
withIntermediateDirectories:YES
|
||||
attributes:nil
|
||||
error:&error];
|
||||
|
||||
NSURL *preferencesURL = [containerURL URLByAppendingPathComponent:@"Library/Preferences"];
|
||||
[fileManager createDirectoryAtURL:preferencesURL
|
||||
withIntermediateDirectories:YES
|
||||
attributes:nil
|
||||
error:&error];
|
||||
}
|
||||
|
||||
return containerURL;
|
||||
}
|
||||
%end
|
||||
@@ -94,4 +94,42 @@
|
||||
+ (id)containerWithIdentifier:(id)arg1 {
|
||||
return nil;
|
||||
}
|
||||
%end
|
||||
|
||||
%hook NSPersistentCloudKitContainerOptions
|
||||
- (id)initWithContainerIdentifier:(id)arg1 {
|
||||
return nil;
|
||||
}
|
||||
%end
|
||||
|
||||
%hook CKRecordID
|
||||
- (id)initWithRecordName:(id)arg1 {
|
||||
return nil;
|
||||
}
|
||||
- (id)initWithRecordName:(id)arg1 zoneID:(id)arg2 {
|
||||
return nil;
|
||||
}
|
||||
%end
|
||||
|
||||
%hook CKSystemSharingUIObserver
|
||||
- (id)initWithContainer:(id)arg1 {
|
||||
return nil;
|
||||
}
|
||||
%end
|
||||
|
||||
%hook NSFileManager
|
||||
- (id)ubiquityIdentityToken {
|
||||
return nil;
|
||||
}
|
||||
- (NSURL *)containerURLForSecurityApplicationGroupIdentifier:(NSString *)groupIdentifier {
|
||||
NSString *docPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject];
|
||||
NSString *path = [docPath stringByAppendingPathComponent:groupIdentifier];
|
||||
NSURL *url = [NSURL fileURLWithPath:path];
|
||||
|
||||
if (![[NSFileManager defaultManager] fileExistsAtPath:[url path]]) {
|
||||
[[NSFileManager defaultManager] createDirectoryAtURL:url withIntermediateDirectories:YES attributes:nil error:nil];
|
||||
}
|
||||
|
||||
return url;
|
||||
}
|
||||
%end
|
||||
@@ -1,6 +1,6 @@
|
||||
Package: io.infuseteam.infuserootless
|
||||
Name: Infuse (Rootless)
|
||||
Version: 2.2
|
||||
Version: 2.3
|
||||
Architecture: appletvos-arm64
|
||||
Description: Unlock the full potential of Infuse
|
||||
Maintainer: Infuse Team
|
||||
|
||||
Reference in New Issue
Block a user