make-release-build: use strip-nondeterminism to get reproducible build

strip-nondeterminism sets the timestamps in the zip based on the timestamp
of the git commit.
This commit is contained in:
Hans-Christoph Steiner 2016-01-14 20:59:17 +01:00
parent 5ce1f5f91a
commit 58d53ea347
1 changed files with 8 additions and 0 deletions

View File

@ -71,6 +71,14 @@ faketime -f "$TIMESTAMP_5" ant release
apk=$projectroot/bin/$projectname-v$describe.apk
# standardize timestamps in ZIP headers, requires strip-nondeterminism 0.014
if which strip-nondeterminism > /dev/null; then
strip-nondeterminism -t zip -T $(git log -n1 --format=format:%at) $apk
fi
# echo the checksum to build logs
sha256sum $apk
if which gpg > /dev/null; then
if [ -z "`gpg --list-secret-keys`" ]; then
echo "No GPG secret keys found, not signing APK"