Skip to content

Commit 20f4a19

Browse files
committed
feat: supports trollstore lite
Signed-off-by: 82Flex <[email protected]>
1 parent e2fe80f commit 20f4a19

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

trollinstalld.mm

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
LSApplicationProxy *appProxy = [LSApplicationProxy applicationProxyForIdentifier:@"com.opa334.TrollStore"];
2121
bundlePath = [appProxy.bundleURL path];
2222
}
23+
if (!bundlePath) {
24+
LSApplicationProxy *appProxy = [LSApplicationProxy applicationProxyForIdentifier:@"com.opa334.TrollStoreLite"];
25+
bundlePath = [appProxy.bundleURL path];
26+
}
2327
if (!bundlePath) {
2428
NSString *bundleContainerPath = [[[MCMAppContainer containerWithIdentifier:@"com.opa334.TrollStore"
2529
error:nil] url] path];
@@ -32,6 +36,18 @@
3236
}
3337
}
3438
}
39+
if (!bundlePath) {
40+
NSString *bundleContainerPath = [[[MCMAppContainer containerWithIdentifier:@"com.opa334.TrollStoreLite"
41+
error:nil] url] path];
42+
NSArray<NSString *> *bundleItems =
43+
[[NSFileManager defaultManager] contentsOfDirectoryAtPath:bundleContainerPath error:nil];
44+
for (NSString *bundleItem in bundleItems) {
45+
if ([[bundleItem pathExtension] isEqualToString:@"app"]) {
46+
bundlePath = [bundleContainerPath stringByAppendingPathComponent:bundleItem];
47+
break;
48+
}
49+
}
50+
}
3551
_binary = [bundlePath stringByAppendingPathComponent:@"trollstorehelper"];
3652
});
3753
return [_binary fileSystemRepresentation];

0 commit comments

Comments
 (0)