mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-14 11:52:07 +08:00
硬件加速 和 loading页
This commit is contained in:
@@ -56,6 +56,8 @@ module.exports = (appInfo) => {
|
||||
nodeIntegration: true,
|
||||
},
|
||||
frame: true,
|
||||
show: false,
|
||||
//backgroundColor: '#000000'
|
||||
//titleBarStyle: 'hidden'
|
||||
};
|
||||
|
||||
@@ -101,6 +103,11 @@ module.exports = (appInfo) => {
|
||||
port: 7072, // 默认端口(如果端口被使用,则随机获取一个)
|
||||
};
|
||||
|
||||
/**
|
||||
* 硬件加速
|
||||
*/
|
||||
config.hardGpu = false;
|
||||
|
||||
/* 应用自动升级 (可选) */
|
||||
config.autoUpdate = {
|
||||
windows: false, // windows平台
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ee",
|
||||
"version": "2.1.3",
|
||||
"version": "2.1.4",
|
||||
"description": "A fast, desktop software development framework",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
@@ -102,7 +102,7 @@
|
||||
"license": "Apache",
|
||||
"devDependencies": {
|
||||
"debug": "^4.3.3",
|
||||
"electron": "^12.2.3",
|
||||
"electron": "^13.6.9",
|
||||
"electron-builder": "22.10.4",
|
||||
"eslint": "^5.13.0",
|
||||
"eslint-config-egg": "^7.1.0",
|
||||
|
||||
Reference in New Issue
Block a user