aboutsummaryrefslogtreecommitdiff
path: root/launcher/CMakeLists.txt
diff options
context:
space:
mode:
authorKenneth Chew <kenneth.c0@protonmail.com>2022-04-20 00:34:17 -0400
committerKenneth Chew <kenneth.c0@protonmail.com>2022-05-19 15:16:37 -0400
commitea4ef1655bdadf04c36768f0f641ca7579f754cf (patch)
treefa61f2c9902178845dbbf56ca93ee20c3767b747 /launcher/CMakeLists.txt
parent7eb61a28be3b66c1016eab434ae93b5d94eb11af (diff)
downloadPrismLauncher-ea4ef1655bdadf04c36768f0f641ca7579f754cf.tar.gz
PrismLauncher-ea4ef1655bdadf04c36768f0f641ca7579f754cf.tar.bz2
PrismLauncher-ea4ef1655bdadf04c36768f0f641ca7579f754cf.zip
Create `SparkleUpdater` class for access from Qt/C++
To actually get automatic updates going, all that needs to happen is that `SparkleUpdater` needs to be initialized. The rest of the functions can be connected to elements in the UI.
Diffstat (limited to 'launcher/CMakeLists.txt')
-rw-r--r--launcher/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/launcher/CMakeLists.txt b/launcher/CMakeLists.txt
index 87ce3b68..dc10c38e 100644
--- a/launcher/CMakeLists.txt
+++ b/launcher/CMakeLists.txt
@@ -164,6 +164,11 @@ set(UPDATE_SOURCES
updater/DownloadTask.cpp
)
+set(MAC_UPDATE_SOURCES
+ updater/macsparkle/SparkleUpdater.h
+ updater/macsparkle/SparkleUpdater.mm
+)
+
add_unit_test(UpdateChecker
SOURCES updater/UpdateChecker_test.cpp
LIBS Launcher_logic
@@ -600,6 +605,10 @@ set(LOGIC_SOURCES
${ATLAUNCHER_SOURCES}
)
+if(APPLE)
+ set (LOGIC_SOURCES ${LOGIC_SOURCES} ${MAC_UPDATE_SOURCES})
+endif()
+
SET(LAUNCHER_SOURCES
# Application base
Application.h