mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 23:54:26 +08:00
19 lines
476 B
C#
19 lines
476 B
C#
|
|
using LanMountainDesktop.Launcher.Models;
|
||
|
|
|
||
|
|
namespace LanMountainDesktop.Launcher.Update;
|
||
|
|
|
||
|
|
internal interface IUpdateEngine
|
||
|
|
{
|
||
|
|
LauncherResult CheckPendingUpdate();
|
||
|
|
|
||
|
|
Task<LauncherResult> DownloadAsync(string manifestUrl, string signatureUrl, string archiveUrl, CancellationToken cancellationToken);
|
||
|
|
|
||
|
|
Task<LauncherResult> ApplyPendingUpdateAsync();
|
||
|
|
|
||
|
|
LauncherResult RollbackLatest();
|
||
|
|
|
||
|
|
void CleanupDestroyedDeployments();
|
||
|
|
|
||
|
|
void CleanupIncomingArtifacts();
|
||
|
|
}
|