radicle-heartwood-lfs/scripts
Maciek "mab122" Bator 68202ce58d build: tag rad --version with a +lfs-ipfs suffix, fix newline bug
Appends a semver build-metadata suffix to RADICLE_VERSION so `rad
--version` (and radicle-node/git-remote-rad, which share this build
script via symlink) unambiguously identify a binary as this fork
rather than upstream heartwood -- useful for checking what a deploy
target is actually running.

While wiring this up, found and fixed a real pre-existing bug: none
of the three `git` subprocess outputs captured here (GIT_HEAD,
RADICLE_VERSION, SOURCE_DATE_EPOCH) were trimmed, so each carried a
trailing newline into its `cargo::rustc-env=KEY=VALUE` directive.
Harmless on its own since nothing followed it, but appending the
+lfs-ipfs suffix landed after that embedded newline, splitting the
directive across two lines -- cargo silently discards the second
line as unrecognized, so the suffix never actually took effect until
this trim was added.

Also adds scripts/publish-package.sh: builds all four release
binaries (rad, radicle-node, git-remote-rad, rad-lfs-transfer) and
publishes them as a Forgejo generic package, so a deploy target
without a Rust toolchain can download instead of rebuilding from
source (see NOTES-lfs-store-note-write-bug.md's VPS deployment story
for why that matters).
2026-07-16 13:49:13 +02:00
..
just just: checking for ellipses 2026-05-28 16:52:02 +01:00
build-man-pages.sh just: checking for ellipses 2026-05-28 16:52:02 +01:00
cache-cobs scripts: Small improvement to `cache-cobs` 2024-09-02 16:20:17 +02:00
changelog scripts/changelog: Generate links to commits on seed.radicle.dev 2026-05-30 09:12:25 +01:00
clear-refs-db.sh chore: shellcheck fixes 2025-04-22 15:43:02 +02:00
create-env.sh chore: shellcheck fixes 2025-04-22 15:43:02 +02:00
delete-remote-branches.sh chore: shellcheck fixes 2025-04-22 15:43:02 +02:00
git-hook-template.sh just: Introduce commit-msg hook for typos 2026-04-17 14:36:58 +01:00
import-issue.sh chore: shellcheck fixes 2025-04-22 15:43:02 +02:00
patch-rebase.sh chore: shellcheck fixes 2025-04-22 15:43:02 +02:00
publish-package.sh build: tag rad --version with a +lfs-ipfs suffix, fix newline bug 2026-07-16 13:49:13 +02:00
show-sigrefs.sh chore: shellcheck fixes 2025-04-22 15:43:02 +02:00