Add an option to force using local updater binary (for updater development)
This commit is contained in:
parent
613c01dab5
commit
a64eebf8eb
@ -503,7 +503,8 @@ IF(WIN32)
|
|||||||
)
|
)
|
||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
|
|
||||||
OPTION(MultiMC_UPDATER_DRY_RUN "Enable updater dry-run mode." OFF)
|
OPTION(MultiMC_UPDATER_DRY_RUN "Enable updater dry-run mode -- for updater development." OFF)
|
||||||
|
OPTION(MultiMC_UPDATER_FORCE_LOCAL "Do not download updated updater -- for updater development." OFF)
|
||||||
|
|
||||||
OPTION(MultiMC_CODE_COVERAGE "Compiles for code coverage" OFF)
|
OPTION(MultiMC_CODE_COVERAGE "Compiles for code coverage" OFF)
|
||||||
IF(MultiMC_CODE_COVERAGE)
|
IF(MultiMC_CODE_COVERAGE)
|
||||||
|
@ -21,6 +21,9 @@
|
|||||||
// enabled for updater dry run
|
// enabled for updater dry run
|
||||||
#cmakedefine MultiMC_UPDATER_DRY_RUN
|
#cmakedefine MultiMC_UPDATER_DRY_RUN
|
||||||
|
|
||||||
|
// enabled for updater dry run
|
||||||
|
#cmakedefine MultiMC_UPDATER_FORCE_LOCAL
|
||||||
|
|
||||||
// The commit hash of this build
|
// The commit hash of this build
|
||||||
#define GIT_COMMIT "@MultiMC_GIT_COMMIT@"
|
#define GIT_COMMIT "@MultiMC_GIT_COMMIT@"
|
||||||
|
|
||||||
|
@ -404,7 +404,7 @@ DownloadUpdateTask::processFileLists(NetJob *job,
|
|||||||
|
|
||||||
if (isUpdater)
|
if (isUpdater)
|
||||||
{
|
{
|
||||||
#ifdef MultiMC_UPDATER_DRY_RUN
|
#ifdef MultiMC_UPDATER_FORCE_LOCAL
|
||||||
QLOG_DEBUG() << "Skipping updater download and using local version.";
|
QLOG_DEBUG() << "Skipping updater download and using local version.";
|
||||||
#else
|
#else
|
||||||
auto cache_entry = MMC->metacache()->resolveEntry("root", entry.path);
|
auto cache_entry = MMC->metacache()->resolveEntry("root", entry.path);
|
||||||
|
Loading…
Reference in New Issue
Block a user