android build: attempt at reproducible builds
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
SHELL := /bin/bash
|
||||
PYTHON = python3
|
||||
|
||||
# for reproducible builds
|
||||
export LC_ALL := C
|
||||
export TZ := UTC
|
||||
export SOURCE_DATE_EPOCH := $(shell git log -1 --pretty=%ct)
|
||||
export PYTHONHASHSEED := $(SOURCE_DATE_EPOCH)
|
||||
export BUILD_DATE := $(shell LC_ALL=C TZ=UTC date +'%b %e %Y' -d @$(SOURCE_DATE_EPOCH))
|
||||
export BUILD_TIME := $(shell LC_ALL=C TZ=UTC date +'%H:%M:%S' -d @$(SOURCE_DATE_EPOCH))
|
||||
|
||||
# needs kivy installed or in PYTHONPATH
|
||||
|
||||
.PHONY: theming apk clean
|
||||
|
||||
Reference in New Issue
Block a user