Files
CodePilot/electron-builder.yml
T
7418andClaude Opus 4.6 43e79dec04 fix: ensure standalone node_modules are included in packaged app
- Split extraResources to explicitly copy node_modules separately
  (electron-builder excludes node_modules by default)
- Exclude unnecessary project files from asar bundle
- Fixes 'Cannot find module next' error in packaged app

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 21:48:43 +08:00

42 lines
839 B
YAML

appId: com.codepilot.app
productName: CodePilot
directories:
output: release
files:
- dist-electron/**/*
- "!node_modules"
- "!src"
- "!electron"
- "!.next"
- "!build"
- "!scripts"
- "!docs"
- "!release"
extraResources:
- from: .next/standalone/
to: standalone/
filter:
- "**/*"
- "!node_modules"
- from: .next/standalone/node_modules/
to: standalone/node_modules/
filter: ["**/*"]
- from: .next/standalone/.next/
to: standalone/.next/
filter: ["**/*"]
- from: .next/static/
to: standalone/.next/static/
filter: ["**/*"]
- from: public/
to: standalone/public/
filter: ["**/*"]
asarUnpack:
- "**/*.node"
- "**/better-sqlite3/**"
mac:
icon: build/icon.icns
category: public.app-category.developer-tools
target:
- target: dmg
arch: [arm64]