Skip to content

feat(packaging): build a Debian/Ubuntu .deb and attach it to releases - #172

Merged
Cleboost merged 1 commit into
Cleboost:masterfrom
subhangadirli:feat/deb-packaging
Jul 23, 2026
Merged

Cleboost merged 1 commit into
Cleboost:masterfrom
subhangadirli:feat/deb-packaging

Conversation

@subhangadirli

Copy link
Copy Markdown
Contributor

Add packages/deb/build-deb.sh, which assembles a policy-compliant .deb (control, copyright, generated changelog, man page, icon, desktop entry, postinst/postrm cache hooks) with dependencies resolved from the built binary via dpkg-shlibdeps. Passes lintian with no warnings.

Wire it into the release workflow: a new 'deb' job repackages the already-built generic binary and uploads it, and the release job now attaches the .deb to the GitHub release assets. Document the install path in the README and ignore the /dist build output.

@Cleboost Cleboost left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seem good, can you just clean up the excess comments (.env, build-dep.sh)?

Comment thread .gitignore Outdated
Comment on lines +21 to +32
.vscode/
*.iml
*.swp
*.swo
*~

# ---- OS cruft --------------------------------------------------------------
.DS_Store
Thumbs.db

# ---- Misc ------------------------------------------------------------------
*.log

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unreleated with the PR?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Reverted the unrelated .gitignore additions (editors/OS-cruft/misc) back to just /target + .idea/ plus the packaging artifacts, and trimmed the verbose banner comments in build-deb.sh.

Add packages/deb/build-deb.sh, which assembles a policy-compliant .deb
(control, copyright, generated changelog, man page, icon, desktop entry,
postinst/postrm cache hooks) with dependencies resolved from the built
binary via dpkg-shlibdeps. Passes lintian with no warnings.

Wire it into the release workflow: a new 'deb' job repackages the
already-built generic binary and uploads it, and the release job now
attaches the .deb to the GitHub release assets. Document the install
path in the README and ignore the /dist build output.
@subhangadirli

Copy link
Copy Markdown
Contributor Author

The failing Clippy check isn't from this PR. CI's rust-toolchain@stable moved to Clippy 1.97, which now enforces pre-existing lints (collapsible_if with let-chains, field_reassign_with_default, needless_borrows_for_generic_args, single_match, etc.) across src/engines/ssh.rs, src/ui/docker.rs, src/ui/monitor.rs, src/ui/window.rs, and others. I confirmed the same cargo clippy -- -D warnings fails identically on master (25 errors). This PR only touches .gitignore and build-deb.sh. Happy to open a separate PR to fix the lints (or pin the clippy toolchain) — didn't want to mix it into packaging.

@Cleboost Cleboost left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks you!

@Cleboost
Cleboost merged commit 9839230 into Cleboost:master Jul 23, 2026
Cleboost pushed a commit that referenced this pull request Nov 4, 2026
…#172)

Add packages/deb/build-deb.sh, which assembles a policy-compliant .deb
(control, copyright, generated changelog, man page, icon, desktop entry,
postinst/postrm cache hooks) with dependencies resolved from the built
binary via dpkg-shlibdeps. Passes lintian with no warnings.

Wire it into the release workflow: a new 'deb' job repackages the
already-built generic binary and uploads it, and the release job now
attaches the .deb to the GitHub release assets. Document the install
path in the README and ignore the /dist build output.
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.

2 participants