fix(launcher): bootstrap release state and signed manifest
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
namespace UpdateClient
|
||||
{
|
||||
enum class ManifestBootstrapAction
|
||||
{
|
||||
None,
|
||||
FetchCurrentManifest,
|
||||
CurrentVersionNotPublished
|
||||
};
|
||||
|
||||
inline ManifestBootstrapAction manifestBootstrapAction(
|
||||
bool manifestCacheMissing,
|
||||
bool networkAvailable,
|
||||
bool updateAvailable,
|
||||
int serverVersionId)
|
||||
{
|
||||
if (!manifestCacheMissing || !networkAvailable || updateAvailable)
|
||||
return ManifestBootstrapAction::None;
|
||||
if (serverVersionId <= 0)
|
||||
return ManifestBootstrapAction::CurrentVersionNotPublished;
|
||||
return ManifestBootstrapAction::FetchCurrentManifest;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user