"use strict";const{app:e,BrowserWindow:n}=require("electron"),i=require("path");require("electron-squirrel-startup")&&e.quit();const t=()=>{const o=new n({width:800,height:600,webPreferences:{preload:i.join(__dirname,"preload.js")}});o.loadURL("http://localhost:5173"),o.webContents.openDevTools()};e.on("ready",t);e.on("window-all-closed",()=>{process.platform!=="darwin"&&e.quit()});e.on("activate",()=>{n.getAllWindows().length===0&&t()});
