diff --git a/crates/client/src/pack.rs b/crates/client/src/pack.rs index fd345a6..6f50e76 100644 --- a/crates/client/src/pack.rs +++ b/crates/client/src/pack.rs @@ -67,6 +67,15 @@ pub fn pack(assets: Option, map: &str, out: &Path) -> anyhow::Result<() std::fs::write(&map_dest, &map_bytes)?; total += map_bytes.len(); + // Маркер установки: `tier::paths::detect` узнаёт корень по gameinfo.txt + // (или dir-VPK). Без него клиент с `--assets ` отвечает «не найдены». + if let Ok(info) = vfs.read("gameinfo.txt") { + std::fs::write(root.join("gameinfo.txt"), &info)?; + total += info.len(); + } else { + tracing::warn!("gameinfo.txt не найден в VFS — маркер установки не записан"); + } + tracing::info!( files = paths.len() + 1, bytes = total,