build: rename binaries and paths to allow side-by-side installation

Changed the binary names to mango-wl and mmsg-wl and the
configuration paths to mango-wl/ to allow parallel installations of
mango main branch and wl-roots only.
This commit is contained in:
CtrlLuzzio 2026-06-06 17:19:16 -04:00
parent 10b2b733c5
commit 5b19c8da93
5 changed files with 15 additions and 15 deletions

View file

@ -2797,7 +2797,7 @@ bool parse_config_file(Config *config, const char *file_path, bool must_exist) {
"variable not set.\n");
return false;
}
snprintf(full_path, sizeof(full_path), "%s/.config/mango/%s", home,
snprintf(full_path, sizeof(full_path), "%s/.config/mango-wl/%s", home,
file_path + 1);
}
file = fopen(full_path, "r");
@ -3581,13 +3581,13 @@ bool parse_config(void) {
return false;
}
// 构建日志文件路径
snprintf(filename, sizeof(filename), "%s/.config/mango/config.conf",
snprintf(filename, sizeof(filename), "%s/.config/mango-wl/config.conf",
homedir);
// 检查文件是否存在
if (access(filename, F_OK) != 0) {
// 如果文件不存在,则使用 /etc/mango/config.conf
snprintf(filename, sizeof(filename), "%s/mango/config.conf",
// 如果文件不存在,则使用 /etc/mango-wl/config.conf
snprintf(filename, sizeof(filename), "%s/mango-wl/config.conf",
SYSCONFDIR);
}
}