mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-28 05:14:34 +00:00
Installer progress: change the dock icon to the bundle being updated
This way we don't have to include an icon for the installer progress app. There is a minor issue where the dock icon changes back before termination. However, this app should show up in rare cases in the first place, so I still think this is a good trade off. For most applications, it makes more sense to use the app's icon than Sparkle's. That and we can save some disk space usage.
This commit is contained in:
1 parent
355d6eddbf
commit
d44ef6bb75
2 files changed
+3
-1
No files matched your search
@@ -2,6 +2,5 @@
|
||||
|
||||
INFOPLIST_FILE = Sparkle/InstallerProgress/InstallerProgress-Info.plist
|
||||
PRODUCT_NAME = $(SPARKLE_INSTALLER_PROGRESS_TOOL_NAME)
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = $(SPARKLE_ICON_NAME)
|
||||
SKIP_INSTALL = YES
|
||||
CLANG_ENABLE_MODULES = NO
|
||||
@@ -11,6 +11,7 @@
|
||||
#import "SURemoteMessagePort.h"
|
||||
#import "SUMessageTypes.h"
|
||||
#import "SULog.h"
|
||||
#import "SUApplicationInfo.h"
|
||||
|
||||
/*!
|
||||
* Terminate the application after a delay from launching the new update to avoid OS activation issues
|
||||
@@ -56,6 +57,8 @@ static const NSTimeInterval SUTerminationTimeDelay = 0.3;
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
application.applicationIconImage = [SUApplicationInfo bestIconForBundle:bundle];
|
||||
|
||||
application.delegate = self;
|
||||
|
||||
_application = application;
|
||||
|
||||
Reference in new issue
Block a user