fix: resolve Linux deb packaging failures#21
Open
ecogs-sys wants to merge 2 commits into
Open
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
descriptionfield toapps/desktop/package.json(required by electron-builder FpmTarget)artifactNameto thelinuxsection ofelectron-builder.jsonso the output filename uses${productName}instead of the scoped npm name (@aipad/desktop), which caused fpm to write torelease/0.5.0/@aipad/desktop_0.5.0_amd64.deb— a path whose parent directory (@aipad) never existsRoot 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 becamerelease/<ver>/@aipad/desktop_<ver>_amd64.deb. The@aipadsubdirectory is never created, so fpm exits with a fatal path error.Test plan
pnpm dist:linuxon Ubuntu — confirm.debbuilds torelease/0.5.0/AI.Pad-0.5.0-x64.deb(no@aipadsubdir).AppImagealso builds successfullypnpm dist:win) still passes🤖 Generated with Claude Code