feat: add some funcs

This commit is contained in:
lucasdpt
2026-06-14 14:23:37 +02:00
parent 48fa508540
commit 4756420f8d
11 changed files with 240 additions and 44 deletions
+10
View File
@@ -41,6 +41,16 @@ class LauncherPaths {
return join(this.root, 'settings.json')
}
/** Dossier des logs du launcher (install/Java/packwiz/jeu). */
get logsDir(): string {
return this.ensure(join(this.root, 'logs'))
}
/** Fichier de log courant du launcher. */
get launcherLogFile(): string {
return join(this.logsDir, 'launcher.log')
}
/** jar packwiz-installer-bootstrap embarqué dans les resources. */
get packwizBootstrapJar(): string {
// En prod, electron-builder copie resources/ via extraResources.