mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 02:55:44 +08:00
#42 Enable reading update info from GitHub Packages REST API
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user