12enum class PreReleaseType
26 std::string mDownloadUrl;
27 std::string mContentType;
40 std::string mPublishedAt;
41 bool mPrerelease =
false;
42 std::vector<ReleaseAsset> mAssets;
48 std::string GetVersion()
const
50 if (!mTagName.empty() && mTagName[0] ==
'v')
52 return mTagName.substr(1);
62 bool IsNewerThan(
const std::string& currentVersion)
const;
70 bool IsNewerThan(
const std::string& currentVersion,
bool cuttingEdgeEnabled)
const;
76 const ReleaseAsset* GetAssetForPlatform()
const;
86 static bool ParseVersion(
const std::string& version,
int& outMajor,
int& outMinor,
int& outPatch);
99 static bool ParseVersion(
const std::string& version,
int& outMajor,
int& outMinor,
int& outPatch,
100 int& outBuild, PreReleaseType& outPreReleaseType,
int& outPreReleaseNum);