Installation
| Platform | Command |
|---|---|
| Arch (AUR) | paru -S jj-release |
| Arch (AUR, full) | paru -S jj-release-full |
| Fedora (COPR) | sudo dnf copr enable sayless88/jj-release && sudo dnf install jj-release |
| Fedora (COPR, full) | sudo dnf install jj-release-full |
| Nix | nix run github:saylesss88/jj-release |
| From source | cargo install --git https://github.com/saylesss88/jj-release |
| Cargo Binstall | cargo binstall jj-release |
Requires jj on your PATH.
Features
jj-release uses Cargo features to keep the binary lean, only compile in
support for the forges and publish targets you actually use.
Default Features
The default build includes GitHub and GitLab support:
cargo install jj-release
Forge Features
| Feature | Enables | Requires |
|---|---|---|
github | GitHub releases and PRs via gh | gh CLI |
gitlab | GitLab releases and MRs via glab | glab CLI |
gitea | Gitea releases and PRs via REST API | GITEA_TOKEN |
forgejo | Forgejo/Codeberg via REST API (includes gitea) | FORGEJO_TOKEN |
# Forgejo/Codeberg only, no GitHub or GitLab
cargo install jj-release --no-default-features --features forgejo
Publish Features
| Feature | Enables |
|---|---|
publish-aur | Publishing to the Arch User Repository |
publish-copr | Publishing to Fedora COPR |
# Full build with all forges and publish targets
cargo install jj-release --features full
Library Features
If you’re using jj_release_core as a library:
[dependencies]
# Default: GitHub + GitLab
jj_release_core = "0.9.0"
# Forgejo/Codeberg support
jj_release_core = { version = "0.9.0", features = ["forgejo"] }
# Everything
jj_release_core = { version = "0.9.0", features = ["full"] }
NixOS & Flakes
The flake provides two packages depending on the features you need:
- Default (
default): Includes thegithubandgitlabfeatures. - Full (
jj-release-full): Includes thefullfeature flag.
Try it out without installing:
Run the default package:
nix run github:saylesss88/jj-release
Run the full package:
nix run github:saylesss88/jj-release#jj-release-full
Add to your NixOS configuration via Flakes:
First, add the input to your flake.nix:
# In your flake.nix:
inputs.jj-release.url = "github:saylesss88/jj-release";
Then, in your configuration.nix (assuming inputs is passed via
specialArgs), add your preferred package to environment.systemPackages:
{ inputs, pkgs, ... }: {
environment.systemPackages = [
# Choose ONE of the following:
# 1. For the default build (GitHub/GitLab only):
inputs.jj-release.packages.${pkgs.stdenv.hostPlatform.system}.default
# 2. For the full build:
inputs.jj-release.packages.${pkgs.stdenv.hostPlatform.system}.jj-release-full
];
}
Arch Linux
paru -S jj-release
Fedora
You can install jj-release from the unofficial COPR repository. This
repository provides pre-compiled binaries built automatically for Fedora
systems.
First, enable the repository:
sudo dnf copr enable sayless88/jj-release
Then install the package:
sudo dnf install jj-release