-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add version check and automatic update
- Loading branch information
Showing
9 changed files
with
506 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright (C) 2023 Jérôme "Lynix" Leclercq (lynix680@gmail.com) | ||
// This file is part of the "This Space Of Mine" project | ||
// For conditions of distribution and use, see copyright notice in Config.hpp | ||
|
||
#pragma once | ||
|
||
#ifndef TSOM_CLIENT_STATES_UPDATEINFO_HPP | ||
#define TSOM_CLIENT_STATES_UPDATEINFO_HPP | ||
|
||
#include <optional> | ||
#include <string> | ||
|
||
namespace tsom | ||
{ | ||
struct UpdateInfo | ||
{ | ||
struct DownloadInfo | ||
{ | ||
std::string downloadUrl; | ||
std::string sha256; | ||
Nz::UInt64 size; | ||
}; | ||
|
||
std::optional<DownloadInfo> assets; | ||
std::string version; | ||
DownloadInfo binaries; | ||
DownloadInfo updater; | ||
}; | ||
} | ||
|
||
#endif // TSOM_CLIENT_STATES_UPDATEINFO_HPP |
Oops, something went wrong.