mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 11:39:25 +00:00
guix: create githash.txt
This commit is contained in:
parent
e78e78677e
commit
b9f1a3744b
3 changed files with 8 additions and 3 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -17,4 +17,5 @@ feather.AppDir/*
|
||||||
src/assets/tor/*
|
src/assets/tor/*
|
||||||
!src/assets/tor/.gitkeep
|
!src/assets/tor/.gitkeep
|
||||||
guix-build-*
|
guix-build-*
|
||||||
contrib/installers/windows/setup.nsi
|
contrib/installers/windows/setup.nsi
|
||||||
|
githash.txt
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef FEATHER_VERSION_H
|
#ifndef FEATHER_VERSION_H
|
||||||
#define FEATHER_VERSION_H
|
#define FEATHER_VERSION_H
|
||||||
|
|
||||||
#define FEATHER_VERSION "@VERSION@"
|
#define FEATHER_VERSION "@PROJECT_VERSION@"
|
||||||
#define FEATHER_COMMIT "@FEATHER_COMMIT@"
|
#define FEATHER_COMMIT "@FEATHER_COMMIT@"
|
||||||
|
|
||||||
#define TOR_VERSION "@TOR_VERSION@"
|
#define TOR_VERSION "@TOR_VERSION@"
|
||||||
|
|
|
@ -7,6 +7,9 @@ export LC_ALL=C
|
||||||
set -e -o pipefail
|
set -e -o pipefail
|
||||||
export TZ=UTC
|
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,
|
# 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
|
# 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`
|
# 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
|
# Create the source tarball if not already there
|
||||||
if [ ! -e "$GIT_ARCHIVE" ]; then
|
if [ ! -e "$GIT_ARCHIVE" ]; then
|
||||||
mkdir -p "$(dirname "$GIT_ARCHIVE")"
|
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"
|
sha256sum "$GIT_ARCHIVE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue