feat: Use different launcher folder in dev builds
This commit is contained in:
parent
e4c5d3fcd7
commit
2ad94a192b
1 changed files with 5 additions and 0 deletions
|
|
@ -7,7 +7,12 @@ use crate::LauncherResult;
|
|||
|
||||
const QUALIFIER: &str = "org";
|
||||
const ORGANIZATION: &str = "Polyfrost";
|
||||
#[cfg(not(debug_assertions))]
|
||||
const APPLICATION: &str = "OneClient";
|
||||
// Dev builds use a separate launcher dir (e.g. `oneclient-dev`) so a running
|
||||
// dev environment never touches prod data.
|
||||
#[cfg(debug_assertions)]
|
||||
const APPLICATION: &str = "OneClient-dev";
|
||||
|
||||
static PROJECT_DIRS: OnceLock<ProjectDirs> = OnceLock::new();
|
||||
static LAUNCHER_DIR_OVERRIDE: OnceLock<PathBuf> = OnceLock::new();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue