builder.json
Packaging uses the electron-builder package. For more configuration, refer to the official documentation.
bash
# Location
./cmd/builder.json
# Description
builder.json // Windows
builder-mac-arm64.json // macOS Intel
builder-mac.json // macOS M-series
builder-linux.json // Linuxjavascript
{
// Executable program name (English)
// Do not use Chinese to avoid unknown exceptions; after packaging, you can rename the installer to Chinese
"productName": "ee",
// Software id
"appId": "com.electron.ee",
// Copyright notice (replace with your own)
"copyright": "© 2025 Duola Haomeng Technology Co., Ltd.",
// Installer output directory
"directories": {
"output": "out"
},
// asar encryption
"asar": true,
// Files to package
"files": [
"**/*",
"!cmd/",
"!data/",
"!electron/",
"!frontend/",
"!logs/",
"!out/",
"!go/",
"!python/"
],
// Extra resources (package the from folder into the installer; after installation, place it in the to folder)
"extraResources": {
"from": "build/extraResources/",
"to": "extraResources",
// Filter
"filter": []
},
// nsis script - only windows
"nsis": {
// One-click install
"oneClick": false,
"allowElevation": true,
// Allow changing installation directory
"allowToChangeInstallationDirectory": true,
// Installer icon
"installerIcon": "build/icons/icon.ico",
// Uninstaller icon
"uninstallerIcon": "build/icons/icon.ico",
// Installer header icon
"installerHeaderIcon": "build/icons/icon.ico",
// Create desktop shortcut
"createDesktopShortcut": true,
// Create start menu shortcut
"createStartMenuShortcut": true,
// Desktop shortcut name
"shortcutName": "EE Framework"
},
"publish": [
{
"provider": "generic",
"url": ""
}
],
// macOS
"mac": {
"icon": "build/icons/icon.icns",
"artifactName": "${productName}-${os}-${version}-${arch}.${ext}",
"darkModeSupport": true,
"hardenedRuntime": false
},
// windows
"win": {
"icon": "build/icons/icon.ico",
"artifactName": "${productName}-${os}-${version}-${arch}.${ext}",
"target": [
{
"target": "nsis"
}
]
},
// linux
"linux": {
"icon": "build/icons/icon.icns",
"artifactName": "${productName}-${os}-${version}-${arch}.${ext}",
"target": [
"deb"
],
"category": "Utility"
}
}