Feat/fedora rpm packaging - #461
Open
YacineSahli wants to merge 2 commits into
Open
Conversation
Prints a shell completion script (bash, zsh, fish, ...) for the cook binary to stdout, so users and packagers don't have to hand-roll one. Uses the fallible clap_complete API so a closed pipe is an error, not a panic.
Ship RPMs for Fedora so users can install and update cook through dnf instead of manually placing the release binary. - packaging/fedora/cookcli.spec builds from the release source tarball (which ships the compiled web assets, so no Node.js at build time) with vendored crates, fully offline, and installs the cook binary plus bash/zsh/fish completions generated by the binary itself. - self-update is disabled on purpose: a packaged binary must not replace itself from GitHub releases; updates come from the package manager. The sync feature (bundled SQLite, hardcoded by cooklang-sync-client) can be dropped with rpmbuild --without sync. - packaging/fedora/build-rpm.sh builds the RPMs and SRPM from a checkout or a downloaded release tarball; output lands in dist/rpm/. - The release workflow builds RPMs in Fedora containers (oldest maintained + latest, x86_64 and aarch64) and attaches them to the GitHub release. A separate rpm.yaml workflow builds them on demand so packaging changes are testable without cutting a release.
Member
|
@YacineSahli seems like a weird issue, is it related to the repo setup or something else? |
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.
Adds RPM packaging so Fedora users can install and update cook through dnf instead of manually placing the release binary.