chore(electron): enhance packaging configuration and cleanup processes
- Updated compression setting to maximum in electron-builder configuration. - Excluded screenshot directory from extra resources during packaging. - Added new dependencies: electron-store, electron-updater, and ws. - Improved cleanup scripts to remove unnecessary files and directories, optimizing the bundle size. - Implemented logic to skip dev-only packages during the bundling process.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
appId: app.clawx.desktop
|
||||
productName: ClawX
|
||||
copyright: Copyright © 2026 ClawX
|
||||
compression: normal
|
||||
compression: maximum
|
||||
artifactName: ${productName}-${version}-${os}-${arch}.${ext}
|
||||
|
||||
directories:
|
||||
@@ -21,6 +21,7 @@ extraResources:
|
||||
- "!icons/*.md"
|
||||
- "!icons/*.svg"
|
||||
- "!bin/**"
|
||||
- "!screenshot/**"
|
||||
# OpenClaw package (node_modules copied separately by afterPack hook
|
||||
# because electron-builder respects .gitignore which excludes node_modules/)
|
||||
- from: build/openclaw/
|
||||
|
||||
Reference in New Issue
Block a user