1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-23 19:55:38 +01:00

Make build reproducible

This change makes zip drop any additional metadata about the file, like access
time. Without this change, you'd get different md5sums every time you build
svtplay-dl --- even though you use the exact same sources.

Credit to the people behind http://reproducible.debian.net/ for inspiration! :)
This commit is contained in:
Olof Johansson 2015-02-13 23:27:54 +01:00
parent e37feb3322
commit 87ae56caca

View File

@ -19,8 +19,8 @@ export PYFILES = $(addsuffix /*.py,$(subst .,/,$(PACKAGES)))
PYTHON ?= /usr/bin/env python
svtplay-dl: $(PYFILES)
zip --quiet svtplay-dl $(PYFILES)
zip --quiet --junk-paths svtplay-dl svtplay_dl/__main__.py
zip -X --quiet svtplay-dl $(PYFILES)
zip -X --quiet --junk-paths svtplay-dl svtplay_dl/__main__.py
echo '#!$(PYTHON)' > svtplay-dl
cat svtplay-dl.zip >> svtplay-dl
rm svtplay-dl.zip