mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
16 lines
508 B
JavaScript
16 lines
508 B
JavaScript
import { BrowserWindow, app } from "electron";
|
|
import path, { dirname } from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
app.whenReady().then(() => {
|
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
const win = new BrowserWindow({
|
|
title: "OGame",
|
|
icon: path.join(__dirname, "../public/favicon.ico"),
|
|
width: 1200,
|
|
height: 800
|
|
});
|
|
win.setMenu(null);
|
|
if (process.env.VITE_DEV_SERVER_URL) win.loadURL(process.env.VITE_DEV_SERVER_URL);
|
|
else win.loadFile("docs/index.html");
|
|
});
|