feat: Bootstrap the Electron application with React, Convex, and LiveKit, including a FriendsView component and a Gitea CI/CD release workflow.
Some checks failed
Build and Release / build-and-release (push) Failing after 27m21s

This commit is contained in:
Bryan1029384756
2026-02-10 19:17:51 -06:00
parent 17790afa9b
commit e874b89fe8
8 changed files with 424 additions and 47 deletions

View File

@@ -2,6 +2,7 @@ const { app, BrowserWindow, ipcMain, shell } = require('electron');
const path = require('path');
const https = require('https');
const http = require('http');
const { checkForUpdates } = require('./updater.cjs');
function createWindow() {
const win = new BrowserWindow({
@@ -28,8 +29,36 @@ function createWindow() {
}
}
app.whenReady().then(() => {
createWindow();
function createSplashWindow() {
const splash = new BrowserWindow({
width: 300,
height: 350,
frame: false,
resizable: false,
alwaysOnTop: true,
webPreferences: {
nodeIntegration: false,
contextIsolation: true
}
});
splash.loadFile(path.join(__dirname, 'splash.html'));
return splash;
}
app.whenReady().then(async () => {
const isDev = !app.isPackaged;
if (isDev) {
createWindow();
} else {
const splash = createSplashWindow();
const noUpdate = await checkForUpdates(splash);
if (noUpdate === false) {
if (!splash.isDestroyed()) splash.close();
createWindow();
}
// If update downloaded, quitAndInstall handles restart
}
ipcMain.on('window-minimize', () => {
const win = BrowserWindow.getFocusedWindow();