This commit is contained in:
gaoshuaixing
2023-10-19 17:46:21 +08:00
parent 7ba457c9d4
commit e674a7fe86
11 changed files with 52 additions and 8 deletions

BIN
build/icons/128x128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
build/icons/16x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 745 B

BIN
build/icons/48x48.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
build/icons/icon.icns Normal file

Binary file not shown.

BIN
build/icons/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

View File

@@ -72,5 +72,27 @@ module.exports = {
stringArrayEncoding: ['none'],
deadCodeInjection: false,
}
}
},
/**
* 执行自定义命令
* ee-bin exec
*/
exec: {
go: {
directory: './go',
cmd: 'go',
args: ['run', './main.go', '--env=dev'],
},
node_version: {
directory: './',
cmd: 'node',
args: ['-v'],
},
npm_version: {
directory: './',
cmd: 'npm',
args: ['-v'],
},
},
};

View File

@@ -26,8 +26,8 @@ module.exports = (appInfo) => {
title: 'EE框架',
width: 980,
height: 650,
minWidth: 800,
minHeight: 650,
minWidth: 400,
minHeight: 300,
webPreferences: {
webSecurity: false,
contextIsolation: false, // false -> 可在渲染进程中使用electron的apitrue->需要bridge.js(contextBridge)
@@ -89,6 +89,7 @@ module.exports = (appInfo) => {
key: '/public/ssl/localhost+1.key',
cert: '/public/ssl/localhost+1.pem'
},
host: '127.0.0.1',
port: 7071,
cors: {
origin: "*"
@@ -113,7 +114,7 @@ module.exports = (appInfo) => {
config.mainServer = {
protocol: 'file://',
indexPath: '/public/dist/index.html',
host: 'localhost',
host: '127.0.0.1',
port: 7072,
};
@@ -131,6 +132,13 @@ module.exports = (appInfo) => {
mainExit: false,
childExit: true,
rendererExit: true,
};
/**
* jobs
*/
config.jobs = {
messageLog: true
};
/**

View File

@@ -18,6 +18,13 @@ module.exports = (appInfo) => {
*/
config.openAppMenu = true;
/**
* jobs
*/
config.jobs = {
messageLog: true
};
return {
...config
};

View File

@@ -16,6 +16,13 @@ module.exports = (appInfo) => {
*/
config.openAppMenu = false;
/**
* jobs
*/
config.jobs = {
messageLog: false
};
return {
...config
};

View File

@@ -17,7 +17,7 @@
margin: -7.5em;
padding: 3em;
position: absolute;
top: 40%;
top: 50%;
width: 9em;
transform: rotateX(45deg) rotateZ(45deg);
transform-style: preserve-3d;

View File

@@ -1,6 +1,6 @@
{
"name": "ee",
"version": "3.7.0",
"version": "3.8.0",
"description": "A fast, desktop software development framework",
"main": "main.js",
"scripts": {
@@ -46,7 +46,7 @@
"devDependencies": {
"@electron/rebuild": "^3.2.13",
"debug": "^4.3.3",
"ee-bin": "^1.2.0",
"ee-bin": "^1.3.0",
"electron": "^21.4.4",
"electron-builder": "^23.6.0",
"eslint": "^5.13.0",
@@ -55,7 +55,7 @@
},
"dependencies": {
"dayjs": "^1.10.7",
"ee-core": "^2.5.0",
"ee-core": "^2.6.0",
"electron-updater": "^5.3.0",
"lodash": "^4.17.21"
}