#42 Enable reading update info from GitHub Packages REST API

This commit is contained in:
Mat Sutcliffe
2020-07-03 21:10:16 +01:00
parent 8375881941
commit 38a1d24411
9 changed files with 198 additions and 7 deletions

View File

@@ -149,6 +149,18 @@ namespace BlackConfig
}
}
const QString& CBuildConfig::gitHubRepoUrl()
{
static const QString url = "https://github.com/swift-project/pilotclient/";
return url;
}
const QString& CBuildConfig::gitHubRepoApiUrl()
{
static const QString url = "https://api.github.com/repos/swift-project/pilotclient/";
return url;
}
const QString &CBuildConfig::buildDateAndTime()
{
// http://en.cppreference.com/w/cpp/preprocessor/replace#Predefined_macros

View File

@@ -118,6 +118,12 @@ namespace BlackConfig
//! Vatsim client key
static const QString &vatsimPrivateKey(); // defined in buildconfig_gen.cpp.in
//! GitHub repository URL
static const QString &gitHubRepoUrl();
//! GitHub Packages REST API URL
static const QString &gitHubRepoApiUrl();
//! Returns SHA-1 of git HEAD at build time
static const QString &gitHeadSha1();