]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
guix: create githash.txt
authortobtoht <tob@featherwallet.org>
Thu, 5 Jan 2023 18:35:05 +0000 (19:35 +0100)
committertobtoht <tob@featherwallet.org>
Thu, 5 Jan 2023 18:47:46 +0000 (19:47 +0100)
.gitignore
cmake/config-feather.h.cmake
contrib/guix/libexec/build.sh

index 4a17b62504d7fff01e70f4a832d1255559f83a3b..b0aa1d1b77a545d8e593f9540e31e217bc51a2f8 100644 (file)
@@ -17,4 +17,5 @@ feather.AppDir/*
 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
index 1e9f3f4aa1f0bae56aa633215aa7fdb358fd83ac..55fa424483d98526cfb4a90c9e9eb77f99da753e 100644 (file)
@@ -1,7 +1,7 @@
 #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@"
index 7b6aa0878d86cfd128d9f5181110266fbe022fcb..4bc23a8417c5559e8f4c0605e8d4e6c713a61e6b 100755 (executable)
@@ -7,6 +7,9 @@ export LC_ALL=C
 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`
@@ -227,7 +230,8 @@ GIT_ARCHIVE="${DIST_ARCHIVE_BASE}/${DISTNAME}.tar.gz"
 # 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