Add missing electronjs file + small fixes

This commit is contained in:
oobabooga
2026-05-02 15:51:55 -07:00
parent 8e7ecabc68
commit d9a83d8fd9
3 changed files with 11 additions and 0 deletions

1
.gitignore vendored
View File

@@ -22,6 +22,7 @@ venv
cert.pem cert.pem
key.pem key.pem
package.json package.json
!desktop/package.json
package-lock.json package-lock.json
Thumbs.db Thumbs.db
wandb wandb

View File

@@ -20,6 +20,12 @@ const userArgs = dashIdx >= 0 ? argv.slice(dashIdx + 1) : argv;
app.setName(TITLE); app.setName(TITLE);
// chrome-sandbox needs SUID root, which the unzipped portable build can't ship.
// Safe to disable here — we only load our own localhost server, no untrusted content.
if (process.platform === "linux") {
app.commandLine.appendSwitch("no-sandbox");
}
let serverProcess = null; let serverProcess = null;
let mainWindow = null; let mainWindow = null;
let portCheckInterval = null; let portCheckInterval = null;

4
desktop/package.json Normal file
View File

@@ -0,0 +1,4 @@
{
"name": "textgen",
"main": "main.js"
}