Skip to content

fix: resolve Linux deb packaging failures#21

Open
ecogs-sys wants to merge 2 commits into
mainfrom
fix/linux-deb-packaging
Open

fix: resolve Linux deb packaging failures#21
ecogs-sys wants to merge 2 commits into
mainfrom
fix/linux-deb-packaging

Conversation

@ecogs-sys
Copy link
Copy Markdown
Owner

Summary

  • Added description field to apps/desktop/package.json (required by electron-builder FpmTarget)
  • Added artifactName to the linux section of electron-builder.json so the output filename uses ${productName} instead of the scoped npm name (@aipad/desktop), which caused fpm to write to release/0.5.0/@aipad/desktop_0.5.0_amd64.deb — a path whose parent directory (@aipad) never exists

Root cause

electron-builder's default artifact name for Linux derives from the npm package name. Since the package is @aipad/desktop, the default output path became release/<ver>/@aipad/desktop_<ver>_amd64.deb. The @aipad subdirectory is never created, so fpm exits with a fatal path error.

Test plan

  • Run pnpm dist:linux on Ubuntu — confirm .deb builds to release/0.5.0/AI.Pad-0.5.0-x64.deb (no @aipad subdir)
  • Confirm .AppImage also builds successfully
  • Confirm Windows build (pnpm dist:win) still passes

🤖 Generated with Claude Code

ecogs-sys and others added 2 commits June 2, 2026 06:40
- Add description to package.json (required by electron-builder FpmTarget)
- Add artifactName to linux config so the .deb output path uses productName
  instead of the scoped npm name (@aipad/desktop), which caused fpm to try
  writing to a non-existent @aipad subdirectory

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant