mirror of https://github.com/opa334/TrollStore.git
Restore support for apps that have the com.apple.private.security.no-sandbox entitlement
This commit is contained in:
parent
8baab5e2e2
commit
dbaa03f8a6
|
@ -622,7 +622,12 @@ int signApp(NSString* appPath)
|
|||
if (noContainerO && [noContainerO isKindOfClass:[NSNumber class]]) {
|
||||
noContainer = [(NSNumber *)noContainerO boolValue];
|
||||
}
|
||||
if (!noContainer) {
|
||||
NSObject *noSandboxO = entitlementsToUse[@"com.apple.private.security.no-sandbox"];
|
||||
BOOL noSandbox = NO;
|
||||
if (noSandboxO && [noSandboxO isKindOfClass:[NSNumber class]]) {
|
||||
noSandbox = [(NSNumber *)noSandboxO boolValue];
|
||||
}
|
||||
if (!noContainer && !noSandbox) {
|
||||
entitlementsToUse[@"com.apple.private.security.container-required"] = bundleId;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue