Start the Electron version

This commit is contained in:
2025-08-24 19:57:38 +03:00
Unverified
parent ff39f246d6
commit a1be1daa09
6 changed files with 76 additions and 21 deletions
+15
View File
@@ -0,0 +1,15 @@
import { app, BrowserWindow } from 'electron';
app.whenReady().then(() => {
const win = new BrowserWindow({
title: 'Main window',
})
// You can use `process.env.VITE_DEV_SERVER_URL` when the vite command is called `serve`
if (process.env.VITE_DEV_SERVER_URL) {
win.loadURL(process.env.VITE_DEV_SERVER_URL)
} else {
// Load your file
win.loadFile('dist/index.html');
}
});
View File