Client 1.4.0: a client log for bug reports, and sign-up is for players 18 and over

- the client keeps a log (app/log.js): its own messages, the pages' and
  the game's warnings and errors, pages that would not load, crashes. at
  most two files of 1 MB; sign-in tokens and passwords are kept out.
  "Show client log" in the settings opens its folder
- the sign-up box says 18 or older
- "Guide (client side)" is just "Guide"
This commit is contained in:
Burrowdev committed 2026-10-24 05:55:18 +03:00
1 parent 8a1b60ad42
commit 22ed8c6792
5 files changed
+156 -3

No files matched your search

+9
View File
@@ -5,6 +5,7 @@ const fs = require("fs");
const path = require("path");
const device = require("./device.js");
const discord = require("./discord.js");
const log = require("./log.js");
const relay = require("./relay.js");
const updater = require("./updater.js");
@@ -41,6 +42,7 @@ if (!app.requestSingleInstanceLock() && pendingLink) {
// (boot.js), kept elsewhere; the plugin and build.json stay beside that one.
const SHIPPED = global.burrow ? global.burrow.shipped : __dirname;
const VERSION = require("./package.json").version;
log.start(VERSION);
// a packaged build names its server in build.json (tools/build.sh --server)
const builtFor = () => {
@@ -518,6 +520,13 @@ ipcMain.on("showFile", (event, file) => {
}
});
// the client's log (log.js), shown in its folder for a bug report
ipcMain.on("showLog", event => {
if (win && event.sender === win.webContents && log.file()) {
shell.showItemInFolder(log.file());
}
});
ipcMain.on("openPage", (event, url) => {
if (/^https?:\/\//.test(String(url))) {
shell.openExternal(String(url));