Skip to content

Commit

Permalink
Drop png timestamps
Browse files Browse the repository at this point in the history
in order to make builds reproducible.
See https://reproducible-builds.org/ for why this is good.

Needed, because convert is not reproducible by default:
ImageMagick/ImageMagick#1270
  • Loading branch information
bmwiedemann committed Sep 28, 2018
1 parent e05dd4a commit 3bbedb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tools/mapcrafter_textures.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ def has_imagemagick():
else:
for filename in glob.glob(os.path.join(args["outdir"], "blocks", "hardened_clay*.png")):
if os.path.exists(filename):
subprocess.check_call(["convert", filename, filename])
subprocess.check_call(["convert", "-strip", filename, filename])

filename = os.path.join(args["outdir"], "blocks", "red_sand.png")
if os.path.exists(filename):
subprocess.check_call(["convert", filename, filename])
subprocess.check_call(["convert", "-strip", filename, filename])

filename = os.path.join(args["outdir"], "blocks", "glass_pane_top_white.png")
if os.path.exists(filename):
subprocess.check_call(["convert", filename, "-type", "TrueColorMatte", "-define", "png:color-type=6", filename])
subprocess.check_call(["convert", "-strip", filename, "-type", "TrueColorMatte", "-define", "png:color-type=6", filename])

0 comments on commit 3bbedb0

Please sign in to comment.