Repository navigation
feat(packaging): build a Debian/Ubuntu .deb and attach it to releases - #172
Conversation
Cleboost
left a comment
There was a problem hiding this comment.
It seem good, can you just clean up the excess comments (.env, build-dep.sh)?
| .vscode/ | ||
| *.iml | ||
| *.swp | ||
| *.swo | ||
| *~ | ||
|
|
||
| # ---- OS cruft -------------------------------------------------------------- | ||
| .DS_Store | ||
| Thumbs.db | ||
|
|
||
| # ---- Misc ------------------------------------------------------------------ | ||
| *.log |
There was a problem hiding this comment.
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.
cc3449d to
8af4292
Compare
|
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. |
…#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.
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.