Files
heartwood/debian/rules
T
Sebastian Martinez 570bfc3bbd debian: add missing env variables to debian build
During the build of heartwood there are a few environment variables in
particular `GIT_HEAD` and `RADICLE_VERSION` that are added during build
to be part of the final binary.

This wasn't the case so far with the debian packages, this patch exports
the needed vars for `override_dh_auto_build` so commands like `rad
--version` display the values.
2025-06-25 13:46:44 +02:00

22 lines
638 B
Makefile
Executable File

#!/usr/bin/make -f
DEB_BUILD_OPTIONS=nostrip
export RADICLE_VERSION=$(shell build/version)
export GIT_HEAD=$(shell git rev-parse HEAD)
%:
dh $@
override_dh_auto_build:
scripts/build-man-pages.sh . *.adoc
override_dh_auto_install:
mkdir -p debian/radicle/usr
cargo install --offline --locked --path=crates/radicle-cli --root=debian/radicle/usr
cargo install --offline --locked --path=crates/radicle-node --root=debian/radicle/usr
cargo install --offline --locked --path=crates/radicle-remote-helper --root=debian/radicle/usr
find debian/radicle -name '.crates*' -delete
override_dh_auto_test:
echo tests are disabled, for now