Skip to content

Commit

Permalink
Add Launcher_DEV_DATA to separate dev build data from prod data
Browse files Browse the repository at this point in the history
  • Loading branch information
peterix committed Jun 13, 2023
1 parent fa5a0fd commit a9ec415
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Expand Up @@ -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})

Expand Down
6 changes: 5 additions & 1 deletion notsecrets/CMakeLists.txt
Expand Up @@ -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 "")
Expand Down

0 comments on commit a9ec415

Please sign in to comment.