mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
chore(electron): 移除Electron相关配置和构建产物
- 删除了Electron主进程文件 dist-electron/main.js - 在.gitignore中添加了dist-electron和docs目录的忽略规则 - 清理了Electron相关的构建配置和开发资源引用 - 移除了Electron应用的窗口创建和路由加载逻辑 - 删除了对VITE开发服务器URL的条件判断和处理 - 去除了Electron菜单栏设置及相关图标引用
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -11,6 +11,8 @@ CLAUDE.md
|
||||
node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
dist-electron
|
||||
docs
|
||||
*.local
|
||||
|
||||
# Editor directories and files
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
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");
|
||||
});
|
||||
Reference in New Issue
Block a user