mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
22 lines
528 B
C#
22 lines
528 B
C#
using System.Threading.Tasks;
|
|
|
|
namespace OwnCord.Client.Services;
|
|
|
|
public record UpdateInfo(
|
|
string CurrentVersion,
|
|
string LatestVersion,
|
|
string ReleaseNotes,
|
|
string DownloadUrl,
|
|
string ChecksumUrl,
|
|
bool UpdateAvailable
|
|
);
|
|
|
|
public interface IUpdateService
|
|
{
|
|
Task<UpdateInfo?> CheckForUpdateAsync();
|
|
Task DownloadAndVerifyAsync(string downloadUrl, string checksumUrl, string destPath);
|
|
void ApplyUpdate(string newExePath);
|
|
void CleanupOldVersion();
|
|
void SkipVersion(string version);
|
|
}
|