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.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user