mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-14 19:52:10 +08:00
106 lines
2.9 KiB
JSON
Executable File
106 lines
2.9 KiB
JSON
Executable File
{
|
|
"name": "electron-egg",
|
|
"version": "2.0.0",
|
|
"description": "A fast, desktop software development framework",
|
|
"main": "main.js",
|
|
"scripts": {
|
|
"start": "electron .",
|
|
"dev": "electron . --env=local",
|
|
"build-w": "electron-builder -w --ia32",
|
|
"build-w-64": "electron-builder -w --x64",
|
|
"build-m": "electron-builder -m",
|
|
"build-m-arm64": "electron-builder -m --arm64",
|
|
"build-l": "electron-builder -l deb tar.xz",
|
|
"web-start": "egg-scripts start --daemon --title=electron-egg --ignore-stderr --env=prod --workers=1",
|
|
"web-stop": "egg-scripts stop --title=electron-egg",
|
|
"web-dev": "egg-bin dev",
|
|
"rd": "node ./tools/replace_dist --dist_dir=./frontend/dist",
|
|
"compress": "node ./tools/code_compress --compress",
|
|
"restore": "node ./tools/code_compress --restore"
|
|
},
|
|
"build": {
|
|
"productName": "electron-egg",
|
|
"appId": "com.electron.electron-egg",
|
|
"copyright": "wallace5303",
|
|
"directories": {
|
|
"output": "out"
|
|
},
|
|
"asar": true,
|
|
"files": [
|
|
"**/*",
|
|
"!frontend/",
|
|
"!run/"
|
|
],
|
|
"extraResources": {
|
|
"from": "./build/extraResources/",
|
|
"to": "extraResources"
|
|
},
|
|
"electronDownload": {
|
|
"mirror": "https://npmmirror.com/mirrors/electron/"
|
|
},
|
|
"nsis": {
|
|
"oneClick": false,
|
|
"allowElevation": true,
|
|
"allowToChangeInstallationDirectory": true,
|
|
"installerIcon": "./build/icons/icon.ico",
|
|
"uninstallerIcon": "./build/icons/icon.ico",
|
|
"installerHeaderIcon": "./build/icons/icon.ico",
|
|
"createDesktopShortcut": true,
|
|
"createStartMenuShortcut": true,
|
|
"shortcutName": "Ee框架"
|
|
},
|
|
"publish": [
|
|
{
|
|
"provider": "generic",
|
|
"url": "https://github.com/wallace5303/electron-egg"
|
|
}
|
|
],
|
|
"mac": {
|
|
"icon": "./build/icons/icon.icns",
|
|
"artifactName": "${productName}-macos-${version}.${ext}",
|
|
"target": [
|
|
"dmg",
|
|
"zip"
|
|
]
|
|
},
|
|
"win": {
|
|
"icon": "./build/icons/icon.ico",
|
|
"artifactName": "${productName}-windows-${version}.${ext}",
|
|
"target": [
|
|
{
|
|
"target": "nsis"
|
|
}
|
|
]
|
|
},
|
|
"linux": {
|
|
"icon": "./build/icons/256x256.png",
|
|
"artifactName": "${productName}-linux-${version}.${ext}",
|
|
"target": [
|
|
"deb"
|
|
]
|
|
}
|
|
},
|
|
"repository": "https://github.com/wallace5303/electron-egg.git",
|
|
"keywords": [
|
|
"Electron",
|
|
"Egg"
|
|
],
|
|
"author": "wallace5303, Inc <530353222@qq.com>",
|
|
"license": "Apache",
|
|
"devDependencies": {
|
|
"egg-bin": "^4.12.3",
|
|
"electron": "^12.2.3",
|
|
"electron-builder": "22.10.4",
|
|
"eslint": "^5.13.0",
|
|
"eslint-config-egg": "^7.1.0",
|
|
"eslint-plugin-prettier": "^3.0.1"
|
|
},
|
|
"dependencies": {
|
|
"egg": "^2.33.1",
|
|
"egg-scripts": "^2.13.0",
|
|
"egg-view-ejs": "^2.0.0",
|
|
"electron-updater": "^4.3.5",
|
|
"lodash": "^4.17.21"
|
|
}
|
|
}
|