mirror of
https://github.com/oobabooga/textgen.git
synced 2026-07-23 11:20:54 -05:00
Add missing electronjs file + small fixes
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -22,6 +22,7 @@ venv
|
||||
cert.pem
|
||||
key.pem
|
||||
package.json
|
||||
!desktop/package.json
|
||||
package-lock.json
|
||||
Thumbs.db
|
||||
wandb
|
||||
|
||||
@@ -20,6 +20,12 @@ const userArgs = dashIdx >= 0 ? argv.slice(dashIdx + 1) : argv;
|
||||
|
||||
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 mainWindow = null;
|
||||
let portCheckInterval = null;
|
||||
|
||||
4
desktop/package.json
Normal file
4
desktop/package.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "textgen",
|
||||
"main": "main.js"
|
||||
}
|
||||
Reference in New Issue
Block a user