wip-electron

This commit is contained in:
Ramnique Singh 2025-12-23 18:26:32 +05:30
parent c637cb49ac
commit 2491bacea1
17 changed files with 8098 additions and 517 deletions

18
apps/electron/main.js Normal file
View file

@ -0,0 +1,18 @@
const { app, BrowserWindow } = require('electron');
const path = require('node:path');
const createWindow = () => {
const win = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
preload: path.join(__dirname, 'preload.js')
},
});
win.loadURL('http://localhost:8080');
};
app.whenReady().then(() => {
createWindow();
});