Add Launcher_DEV_DATA to separate dev build data from prod data

This commit is contained in:
Petr Mrázek 2023-06-13 16:50:34 +02:00
parent fa5a0fd0b7
commit a9ec415c64
2 changed files with 8 additions and 1 deletions

View File

@ -96,6 +96,9 @@ set(Launcher_SUBREDDIT_URL "" CACHE STRING "URL for the subreddit.")
# Use the secrets library or a public stub?
option(Launcher_EMBED_SECRETS "Determines whether to embed secrets. Secrets are separate and non-public." OFF)
# Use development data folder(s)
option(Launcher_DEV_DATA "Use separate, development data folders." ON)
#### Custom target to feed the version to github actions.
add_custom_target(ga_version echo ::set-output name=version::${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}.${PROJECT_VERSION_TWEAK})

View File

@ -9,7 +9,11 @@ set(Launcher_Copyright "MultiMC Contributors" CACHE INTERNAL "")
set(Launcher_Copyright_Full "Copyright 2015-2023 ${Launcher_Copyright}" CACHE INTERNAL "")
set(Launcher_Domain "multimc.org" CACHE INTERNAL "")
set(Launcher_Name "${Launcher_CommonName}" CACHE INTERNAL "")
set(Launcher_FSName "devlauncher" CACHE INTERNAL "")
if(Launcher_DEV_DATA)
set(Launcher_FSName "devlauncher-dev" CACHE INTERNAL "")
else()
set(Launcher_FSName "devlauncher" CACHE INTERNAL "")
endif()
set(Launcher_DisplayName "${Launcher_CommonName} 6" CACHE INTERNAL "")
set(Launcher_UserAgent "${Launcher_CommonName}/6.0" CACHE INTERNAL "")
set(Launcher_ConfigFile "${Launcher_FSName}.cfg" CACHE INTERNAL "")