1
0
mirror of https://github.com/opa334/TrollStore.git synced 2025-07-07 00:38:46 +08:00

Create TSTrollStore.m

This commit is contained in:
a1109471307 2025-07-03 18:11:31 +08:00 committed by GitHub
parent 554f884880
commit 57887a5e8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

21
TrollStore/TSTrollStore.m Normal file
View File

@ -0,0 +1,21 @@
#import "TSStreamingInstaller.h"
#import "TSExploitManager.h"
- (void)installIPAAtPath:(NSString *)ipaPath {
//
TSExploitDescriptor *descriptor = [[TSExploitManager sharedManager] bestDescriptorForCurrentDevice];
if (!descriptor) {
[self showErrorAlert:@"No compatible exploit"];
return;
}
// 使
TSStreamingInstaller *installer = [[TSStreamingInstaller alloc] initWithIPAAtPath:ipaPath];
installer.progressHandler = ^(float progress) {
dispatch_async(dispatch_get_main_queue(), ^{
[self updateProgress:progress];
});
};
[installer installToDestination:[self installationPath]];
}