mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-16 18:25:17 +02:00
wip-electron
This commit is contained in:
parent
c637cb49ac
commit
2491bacea1
17 changed files with 8098 additions and 517 deletions
18
apps/electron/main.js
Normal file
18
apps/electron/main.js
Normal 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();
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue