Skip to content

Commit

Permalink
feat: treat .tipa as .ipa
Browse files Browse the repository at this point in the history
  • Loading branch information
relikd committed Feb 5, 2024
1 parent bae1e20 commit 6671156
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ProvisionQL/Shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ static NSString * _Nonnull const kDataType_osx_provision = @"com.apple.provi
static NSString * _Nonnull const kDataType_xcode_archive = @"com.apple.xcode.archive";
static NSString * _Nonnull const kDataType_app_extension = @"com.apple.application-and-system-extension";

// 3rd party ipa-like file extensions
static NSString * _Nonnull const kDataType_trollstore_ipa = @"com.opa334.trollstore.tipa";
static NSString * _Nonnull const kDataType_trollstore_ipa_dyn = @"dyn.ah62d4rv4ge81k4puqe";

// Init QuickLook Type
typedef NS_ENUM(NSUInteger, FileType) {
FileTypeIPA = 1,
Expand Down
5 changes: 4 additions & 1 deletion ProvisionQL/Shared.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ QuickLookInfo initQLInfo(CFStringRef contentTypeUTI, CFURLRef url) {
data.UTI = (__bridge NSString *)contentTypeUTI;
data.url = (__bridge NSURL *)url;

if ([data.UTI isEqualToString:kDataType_ipa]) {
if ([data.UTI isEqualToString:kDataType_ipa]
// for now, treat .tipa as if it were a normal .ipa file.
|| [data.UTI isEqualToString:kDataType_trollstore_ipa] || [data.UTI isEqualToString:kDataType_trollstore_ipa_dyn])
{
data.type = FileTypeIPA;
data.zipFile = [ZipFile open:data.url.path];
} else if ([data.UTI isEqualToString:kDataType_xcode_archive]) {
Expand Down

0 comments on commit 6671156

Please sign in to comment.