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.
This commit is contained in:
Sebastian Martinez 2025-06-25 13:46:44 +02:00
parent deb823f3b3
commit 570bfc3bbd
1 changed files with 2 additions and 0 deletions

2
debian/rules vendored
View File

@ -1,6 +1,8 @@
#!/usr/bin/make -f
DEB_BUILD_OPTIONS=nostrip
export RADICLE_VERSION=$(shell build/version)
export GIT_HEAD=$(shell git rev-parse HEAD)
%:
dh $@