src/assets/tor/*
!src/assets/tor/.gitkeep
guix-build-*
-contrib/installers/windows/setup.nsi
\ No newline at end of file
+contrib/installers/windows/setup.nsi
+githash.txt
#ifndef FEATHER_VERSION_H
#define FEATHER_VERSION_H
-#define FEATHER_VERSION "@VERSION@"
+#define FEATHER_VERSION "@PROJECT_VERSION@"
#define FEATHER_COMMIT "@FEATHER_COMMIT@"
#define TOR_VERSION "@TOR_VERSION@"
set -e -o pipefail
export TZ=UTC
+# shellcheck source=contrib/shell/git-utils.bash
+source contrib/shell/git-utils.bash
+
# Although Guix _does_ set umask when building its own packages (in our case,
# this is all packages in manifest.scm), it does not set it for `guix
# environment`. It does make sense for at least `guix environment --container`
# Create the source tarball if not already there
if [ ! -e "$GIT_ARCHIVE" ]; then
mkdir -p "$(dirname "$GIT_ARCHIVE")"
- git ls-files --recurse-submodules | tar --transform 's,^,$DISTNAME/,' -caf ${GIT_ARCHIVE} -T-
+ echo "$(git_head_version)" > githash.txt
+ ( git ls-files --recurse-submodules ; echo "githash.txt" ) | cat | tar --transform 's,^,$DISTNAME/,' -caf ${GIT_ARCHIVE} -T-
sha256sum "$GIT_ARCHIVE"
fi