aboutsummaryrefslogtreecommitdiff
path: root/launcher/CMakeLists.txt
diff options
context:
space:
mode:
authorKenneth Chew <kenneth.c0@protonmail.com>2022-04-25 19:33:17 -0400
committerKenneth Chew <kenneth.c0@protonmail.com>2022-05-19 15:16:37 -0400
commit05cd30ac06b67ebc594773fc7e7ccf110fc336a3 (patch)
tree0c477c542301b45c8c2436b7b92b0b00cf785098 /launcher/CMakeLists.txt
parent34adcec6165662d6245a55ee0a75c36753061df2 (diff)
downloadPrismLauncher-05cd30ac06b67ebc594773fc7e7ccf110fc336a3.tar.gz
PrismLauncher-05cd30ac06b67ebc594773fc7e7ccf110fc336a3.tar.bz2
PrismLauncher-05cd30ac06b67ebc594773fc7e7ccf110fc336a3.zip
Refactor code, create abstract class `ExternalUpdater`
(Hopefully) this makes implementing updaters using external libraries easier on other platforms. To implement an updater on a new platform, create a new class that implements the pure virtual methods from `ExternalUpdater` and add code in the `UpdateChecker` initializer to initialize the new class.
Diffstat (limited to 'launcher/CMakeLists.txt')
-rw-r--r--launcher/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/launcher/CMakeLists.txt b/launcher/CMakeLists.txt
index dc10c38e..51f3dc36 100644
--- a/launcher/CMakeLists.txt
+++ b/launcher/CMakeLists.txt
@@ -162,11 +162,12 @@ set(UPDATE_SOURCES
updater/UpdateChecker.cpp
updater/DownloadTask.h
updater/DownloadTask.cpp
+ updater/ExternalUpdater.h
)
set(MAC_UPDATE_SOURCES
- updater/macsparkle/SparkleUpdater.h
- updater/macsparkle/SparkleUpdater.mm
+ updater/MacSparkleUpdater.h
+ updater/MacSparkleUpdater.mm
)
add_unit_test(UpdateChecker