Repository navigation
Add Nix, Scoop, DEB/RPM and AUR packaging - #439
Merged
Merged
Conversation
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.
Why
Today Red installs through Homebrew, the install scripts, or
cargo install --git. People on Nix, Windows package managers, and Debian/Fedora-style distros have no native route, and the mainredname is taken in most of those ecosystems (GNU ed shipsred, and so does the Red programming language). This adds the packaging Red needs to show up in those channels, usingred-editoras the command so it can sit next to the others.What
flake.nix,packaging/nix/package.nix):nix run github:codersauce/redandnix profile add github:codersauce/redfor x86-64 Linux, ARM64 Linux and Apple Silicon. A newNix packageworkflow builds it and runsred-editor --self-checkon all three.bucket/red-editor.json):scoop bucket add codersauce https://github.com/codersauce/red, withcheckver/autoupdatereading the signedSHA256SUMS.txt.packaging/linux/):release.ymlnow builds x86-64 packages from the Linux release tarball with a pinned, checksum-verified nFPM, then installs each one (Ubuntu runner, Fedora 44 container) and runs the self-check before the draft is published. Both require glibc 2.34+, depend on ripgrep and install/usr/bin/red-editor. Their names start withred-, so they land in the signed checksum file with the other assets.packaging/arch/):red-editor-binPKGBUILD and.SRCINFO, published to the AUR separately.docs/RELEASING.mdcovering the manual manifest bumps.Homebrew and the install scripts are unchanged and still install
red.How to Test
nix build .#red-editor && NO_COLOR=1 ./result/bin/red-editor --self-check, or check theNix packagejob on this PR.release.ymlviaworkflow_dispatchagainst a test tag and confirm the DEB/RPM step passes and both files appear in the draft.scoop install https://raw.githubusercontent.com/codersauce/red/fcoury/package-distribution/bucket/red-editor.json, thenred-editor --self-checkandscoop uninstall red-editor.