diff --git a/setup.mjs b/setup.mjs index ef77d8c..71b0cea 100644 --- a/setup.mjs +++ b/setup.mjs @@ -21,6 +21,7 @@ const c = { red: "\x1b[31m", yellow: "\x1b[33m", cyan: "\x1b[36m", + orange: "\x1b[38;5;214m", }; const sym = { @@ -81,10 +82,34 @@ function abort(msg) { // ─── Header ────────────────────────────────────────────────────────────────── -console.log(` -${c.bold}${c.cyan} OpenMonetis — Setup${c.reset} - ${c.dim}Gestão financeira self-hosted${c.reset} -`); +const logoLines = [ + ".............................+@@@@@@@@@@=.............................", + ".............................#@@@@@@@@@@-.............................", + ".............................@@@@@@@@@@@:.............................", + "....................@@%:.....@@@@@@@@@@%......:@@-....................", + "...................+@@@@@@*-:@@@@@@@@@@%...=@@@@@@-...................", + "..................:@@@@@@@@@@@@@@@@@@@@@*@@@@@@@@@@:..................", + "..................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%..................", + ".................#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.................", + "................=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+................", + "................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%+:....................", + "...................-=+%@@@@@@@@@@@@@@@@@@@@@*:........................", + "........................:@@@@@@@@@@@@@@@@@@@@%........................", + ".......................#@@@@@@@@@@@@@@@@@@@@@@@+......................", + ".....................-@@@@@@@@@@@@@@@@@@@@@@@@@@@+....................", + "....................%@@@@@@@@@@@@@%#@@@@@@@@@@@@*.....................", + "..................-@@@@@@@@@@@@@@=..:@@@@@@@@@@-......................", + "....................+@@@@@@@@@@@......*@@@@@@#........................", + ".......................#@@@@@@*........:@@@@-.........................", + ".........................:#@@=...........+#...........................", +]; + +console.log(); +for (const line of logoLines) { + console.log(c.orange + line.replaceAll(".", " ") + c.reset); +} +console.log(`\n${" ".repeat(29)}${c.bold}OpenMonetis${c.reset}`); +console.log(`${" ".repeat(19)}${c.dim}Gestão financeira · self-hosted${c.reset}\n`); // ─── ETAPA 1: Verificações do sistema ──────────────────────────────────────── @@ -329,7 +354,7 @@ if (useLocalDocker) { // Extensões s = spinner("Habilitando extensões do banco..."); try { - run("pnpm db:enableExtensions", { cwd: targetDir }); + run("pnpm db:extensions", { cwd: targetDir }); s.stop("Extensões habilitadas"); } catch { s.fail("Falha ao habilitar extensões");