From 7e456d30ff3b73a02ba6c28a95a5953ab5b3ea9c Mon Sep 17 00:00:00 2001 From: Sveinbjorn Thordarson Date: Tue, 17 Oct 2023 19:03:37 +0000 Subject: [PATCH] Various minor fixes --- Application/PlatypusWindowController.m | 8 ++++---- Application/Resources/Platypus-Info.plist | 2 +- CHANGES.txt | 4 +++- Shared/NSColor+Inverted.m | 5 ++++- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Application/PlatypusWindowController.m b/Application/PlatypusWindowController.m index 2fffaab5..449da677 100644 --- a/Application/PlatypusWindowController.m +++ b/Application/PlatypusWindowController.m @@ -417,10 +417,10 @@ - (BOOL)createApplication:(NSString *)destination { spec[AppSpecKey_NibPath] = [[NSBundle mainBundle] pathForResource:CMDLINE_NIB_NAME ofType:nil]; spec[AppSpecKey_SymlinkFiles] = @((BOOL)[createSymlinksCheckbox intValue]); spec[AppSpecKey_StripNib] = @((BOOL)[stripNibFileCheckbox intValue]); - if (spec[AppSpecKey_StripNib]) { - spec[AppSpecKey_NibPath] = [[NSBundle mainBundle] pathForResource:CMDLINE_NIB_OPT_NAME ofType:nil]; - // spec[AppSpecKey_StripNib] = @(NO); - } +// if (spec[AppSpecKey_StripNib]) { +// spec[AppSpecKey_NibPath] = [[NSBundle mainBundle] pathForResource:CMDLINE_NIB_OPT_NAME ofType:nil]; +// //spec[AppSpecKey_StripNib] = @(NO); +// } spec[AppSpecKey_Overwrite] = @YES; if (![[DEFAULTS stringForKey:DefaultsKey_SigningIdentity] isEqualToString:@"None"]) { spec[AppSpecKey_SigningIdentity] = [DEFAULTS stringForKey:@"SigningIdentity"]; diff --git a/Application/Resources/Platypus-Info.plist b/Application/Resources/Platypus-Info.plist index 11aad44d..71fc0d4a 100644 --- a/Application/Resources/Platypus-Info.plist +++ b/Application/Resources/Platypus-Info.plist @@ -411,7 +411,7 @@ CFBundleSignature ???? CFBundleVersion - 1252 + 1255 LSApplicationCategoryType public.app-category.developer-tools LSMinimumSystemVersion diff --git a/CHANGES.txt b/CHANGES.txt index 281e61ca..56906f45 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -21,11 +21,13 @@ For future versions... TODO: Create more automated tests for command line tool and document existing tests TODO: Harden CI testing for this old project TODO: Fix selection change when item is deleted from the Bundled Files List + TODO: Make Status Menu from script generation non-blocking -For 5.4.2 - 03/10/2023 +For 5.4.2 * Fixed bug where the argument settings window would lock up * Better support for Dark Mode * Performance optimizations in the app build process + * TODO: Upgrade Sparkle version For 5.4.1 - 22/10/2022 * Fixed signing issues diff --git a/Shared/NSColor+Inverted.m b/Shared/NSColor+Inverted.m index b353a6b3..80c3786e 100644 --- a/Shared/NSColor+Inverted.m +++ b/Shared/NSColor+Inverted.m @@ -34,7 +34,10 @@ @implementation NSColor (Inverted) - (NSColor *)inverted { const CGFloat * _Nullable cc = CGColorGetComponents(self.CGColor); - return [NSColor colorWithRed:(1-cc[0]) green:(1-cc[1]) blue:(1-cc[2]) alpha:CGColorGetAlpha(self.CGColor)]; + return [NSColor colorWithRed:(1-cc[0]) + green:(1-cc[1]) + blue:(1-cc[2]) + alpha:CGColorGetAlpha(self.CGColor)]; } @end