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:
Zorg committed 2016-05-29 16:39:46 -04:00
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;