mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-23 04:34:27 +00:00
Wait for appcast item registration before finishing automatic update driver. This fixes a potential race issue where sometimes the automatic update driver on completion would sometimes not trigger to prompt an update alert immediately for critical updates. Note in this case, the update would still be installed on app termination and would still be scheduled to alert the user on the regular update check interval, so this issue is not severe.
51 lines
1.5 KiB
Objective-C
51 lines
1.5 KiB
Objective-C
//
|
|
// SPUMessageTypes.h
|
|
// Sparkle
|
|
//
|
|
// Created by Mayur Pawashe on 3/11/16.
|
|
// Copyright © 2016 Sparkle Project. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
// Order matters; higher stages have higher values.
|
|
typedef NS_ENUM(int32_t, SPUInstallerMessageType)
|
|
{
|
|
SPUInstallerNotStarted = 0,
|
|
SPUExtractionStarted = 1,
|
|
SPUExtractedArchiveWithProgress = 2,
|
|
SPUArchiveExtractionFailed = 3,
|
|
SPUValidationStarted = 4,
|
|
SPUInstallationStartedStage1 = 5,
|
|
SPUInstallationFinishedStage1 = 6,
|
|
SPUInstallationFinishedStage2 = 7,
|
|
SPUInstallationFinishedStage3 = 8,
|
|
SPUUpdaterAlivePing = 9,
|
|
SPUInstallerError = 10,
|
|
SPUInstallerRegisteredAppcastItem = 11,
|
|
};
|
|
|
|
typedef NS_ENUM(int32_t, SPUUpdaterMessageType)
|
|
{
|
|
SPUInstallationData = 0,
|
|
SPUSentUpdateAppcastItemData = 1,
|
|
SPUResumeInstallationToStage2 = 2,
|
|
SPUUpdaterAlivePong = 3,
|
|
SPUCancelInstallation = 4
|
|
};
|
|
|
|
BOOL SPUInstallerMessageTypeIsLegal(SPUInstallerMessageType oldMessageType, SPUInstallerMessageType newMessageType);
|
|
|
|
// Used by framework to communicate to installer (Autoupdate)
|
|
NSString *SPUInstallerServiceNameForBundleIdentifier(NSString *bundleIdentifier);
|
|
|
|
// Used by framework to communicate to progress agent tool (Updater)
|
|
NSString *SPUStatusInfoServiceNameForBundleIdentifier(NSString *bundleIdentifier);
|
|
|
|
// Used by progress agent tool to communicate to installer (Autoupdate)
|
|
NSString *SPUProgressAgentServiceNameForBundleIdentifier(NSString *bundleIdentifier);
|
|
|
|
NS_ASSUME_NONNULL_END
|