Skip to content

Commit

Permalink
feat: add non-dyn tipa type
Browse files Browse the repository at this point in the history
  • Loading branch information
relikd committed Jan 22, 2024
1 parent a415be0 commit 7eef11a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ProvisionQL/GeneratePreviewForURL.m
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
NSData *codesignEntitlementsData = nil;
NSImage *appIcon = nil;

if ([dataType isEqualToString:kDataType_trollstore_ipa]) {
if ([dataType isEqualToString:kDataType_trollstore_ipa] || [dataType isEqualToString:kDataType_trollstore_ipa_dyn]) {
dataType = kDataType_ipa; // treat as if it were an ipa
}

Expand Down
2 changes: 1 addition & 1 deletion ProvisionQL/GenerateThumbnailForURL.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ OSStatus GenerateThumbnailForURL(void *thisInterface, QLThumbnailRequestRef thum
NSUInteger devicesCount = 0;
int expStatus = 0;

if ([dataType isEqualToString:kDataType_trollstore_ipa]) {
if ([dataType isEqualToString:kDataType_trollstore_ipa] || [dataType isEqualToString:kDataType_trollstore_ipa_dyn]) {
dataType = kDataType_ipa; // treat as if it were an ipa
}

Expand Down
3 changes: 2 additions & 1 deletion ProvisionQL/Shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ static NSString * const kDataType_xcode_archive = @"com.apple.xcode.archive"
static NSString * const kDataType_app_extension = @"com.apple.application-and-system-extension";

// afaik there is no mac app that will export the proper UTI "com.opa334.trollstore.tipa"
static NSString * const kDataType_trollstore_ipa = @"dyn.ah62d4rv4ge81k4puqe";
static NSString * const kDataType_trollstore_ipa = @"com.opa334.trollstore.tipa";
static NSString * const kDataType_trollstore_ipa_dyn = @"dyn.ah62d4rv4ge81k4puqe";

NSImage *roundCorners(NSImage *image);
NSImage *imageFromApp(NSURL *URL, NSString *dataType, NSString *fileName);
Expand Down
23 changes: 23 additions & 0 deletions ProvisionQL/Supporting-files/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<string>com.apple.provisionprofile</string>
<string>com.apple.application-and-system-extension</string>
<string>com.apple.xcode.archive</string>
<string>com.opa334.trollstore.tipa</string>
<string>dyn.ah62d4rv4ge81k4puqe</string>
</array>
</dict>
Expand Down Expand Up @@ -63,5 +64,27 @@
<false/>
<key>QLThumbnailMinimumSize</key>
<integer>16</integer>
<key>UTImportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeIdentifier</key>
<string>com.opa334.trollstore.tipa</string>
<key>UTTypeDescription</key>
<string>AirDrop friendly iOS app</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>tipa</string>
</array>
<key>public.mime-type</key>
<string>application/trollstore-ipa</string>
</dict>
</dict>
</array>
</dict>
</plist>

0 comments on commit 7eef11a

Please sign in to comment.