mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
feat(electron): 设置窗口尺寸并移除菜单栏
- 设置主窗口默认尺寸为 1200x800 - 移除窗口菜单栏显示 - 更新构建脚本使用 pnpm 替代 npm
This commit is contained in:
@@ -11,7 +11,10 @@ app.whenReady().then(() => {
|
||||
const win = new BrowserWindow({
|
||||
title: 'OGame',
|
||||
icon: path.join(__dirname, '../public/favicon.ico'),
|
||||
width: 1200,
|
||||
height: 800,
|
||||
})
|
||||
win.setMenu(null);
|
||||
|
||||
// You can use `process.env.VITE_DEV_SERVER_URL` when the vite command is called `serve`
|
||||
if (process.env.VITE_DEV_SERVER_URL) {
|
||||
|
||||
Reference in New Issue
Block a user