From 136200e9636d7bfcea133b672e9e58aebf470198 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Thu, 21 Apr 2022 14:21:37 -0700 Subject: [PATCH] Info.plist generator: Update with default icons Update the Info.plist generator to emit file type definitions which use system generated icons in place of the legacy icons in the app bundle. Also include the new LSHandlerRank field. And also add a definition for the scripting definition, which I accidentally added to the Info.plist manually when I fixed scripting. Signed-off-by: Christopher Snowhill --- Audio/PluginController.mm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Audio/PluginController.mm b/Audio/PluginController.mm index a1867c9d8..7ee780ccd 100644 --- a/Audio/PluginController.mm +++ b/Audio/PluginController.mm @@ -372,6 +372,8 @@ static PluginController *sharedPluginController = nil; \t\t\t\n\ \t\t\tCFBundleTypeIconFile\n\ \t\t\tsong.icns\n\ +\t\t\tCFBundleTypeIconSystemGenerated\n\ +\t\t\t1\n\ \t\t\tCFBundleTypeOSTypes\n\ \t\t\t\n\ \t\t\t\t****\n\ @@ -380,6 +382,8 @@ static PluginController *sharedPluginController = nil; \t\t\t\n\ \t\t\tCFBundleTypeRole\n\ \t\t\tNone\n\ +\t\t\tLSHandlerRank\n\ +\t\t\tDefault\n\ \t\t\n"; NSString * plistFooter = @"\t\n\ \tCFBundleExecutable\n\ @@ -429,6 +433,8 @@ static PluginController *sharedPluginController = nil; \tMediaKeysApplication\n\ \tNSRemindersUsageDescription\n\ \tCog has no use for your reminders. Why are you trying to access them with an audio player?\n\ +\tOSAScriptingDefinition\n\ +\tCog.sdef\n\ \tSUFeedURL\n\ \thttps://cogcdn.cog.losno.co/mercury.xml\n\ \tSUPublicEDKey\n\ @@ -486,12 +492,16 @@ static PluginController *sharedPluginController = nil; \t\t\t"]; [stringList addObject:[type objectAtIndex:1]]; [stringList addObject:@"\n\ +\t\t\tCFBundleTypeIconSystemGenerated\n\ +\t\t\t1\n\ \t\t\tCFBundleTypeName\n\ \t\t\t"]; [stringList addObject:[type objectAtIndex:0]]; [stringList addObject:@"\n\ \t\t\tCFBundleTypeRole\n\ \t\t\tViewer\n\ +\t\t\tLSHandlerRank\n\ +\t\t\tDefault\n\ \t\t\tLSTypeIsPackage\n\ \t\t\t\n\ \t\t\n"];