diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-07-11 09:02:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-11 09:02:41 +0200 |
commit | ac8ee9f981ea509c04ce64d70a47429a1207e18e (patch) | |
tree | 8d7b3421af32ead8ee31f70a00ddd6fa14c81afd /buildconfig | |
parent | cd948dceaed4625e7a876f680d3dc028e6cfe6de (diff) | |
parent | eae8a2914e99f6e9a6db042a0bc0f984fd890227 (diff) | |
download | PrismLauncher-ac8ee9f981ea509c04ce64d70a47429a1207e18e.tar.gz PrismLauncher-ac8ee9f981ea509c04ce64d70a47429a1207e18e.tar.bz2 PrismLauncher-ac8ee9f981ea509c04ce64d70a47429a1207e18e.zip |
Merge pull request #479 from kthchew/feature/sparkle-mac
Diffstat (limited to 'buildconfig')
-rw-r--r-- | buildconfig/BuildConfig.cpp.in | 8 | ||||
-rw-r--r-- | buildconfig/BuildConfig.h | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/buildconfig/BuildConfig.cpp.in b/buildconfig/BuildConfig.cpp.in index 70f8f7f0..2d07bc58 100644 --- a/buildconfig/BuildConfig.cpp.in +++ b/buildconfig/BuildConfig.cpp.in @@ -61,6 +61,14 @@ Config::Config() BUILD_PLATFORM = "@Launcher_BUILD_PLATFORM@"; UPDATER_BASE = "@Launcher_UPDATER_BASE@"; + MAC_SPARKLE_PUB_KEY = "@MACOSX_SPARKLE_UPDATE_PUBLIC_KEY@"; + MAC_SPARKLE_APPCAST_URL = "@MACOSX_SPARKLE_UPDATE_FEED_URL@"; + + if (BUILD_PLATFORM == "macOS" && !MAC_SPARKLE_PUB_KEY.isEmpty() && !MAC_SPARKLE_APPCAST_URL.isEmpty()) + { + UPDATER_ENABLED = true; + } + GIT_COMMIT = "@Launcher_GIT_COMMIT@"; GIT_REFSPEC = "@Launcher_GIT_REFSPEC@"; if (GIT_REFSPEC == QStringLiteral("GITDIR-NOTFOUND")) diff --git a/buildconfig/BuildConfig.h b/buildconfig/BuildConfig.h index 8594e46d..e41d4ba0 100644 --- a/buildconfig/BuildConfig.h +++ b/buildconfig/BuildConfig.h @@ -74,6 +74,12 @@ class Config { /// URL for the updater's channel QString UPDATER_BASE; + /// The public key used to sign releases for the Sparkle updater appcast + QString MAC_SPARKLE_PUB_KEY; + + /// URL for the Sparkle updater's appcast + QString MAC_SPARKLE_APPCAST_URL; + /// User-Agent to use. QString USER_AGENT; |