Merge pull request #16035 from Antiz96/reproducible_builds

build: Ignore timestamps recording in gzip metadata
This commit is contained in:
Jan Fajerski 2025-02-26 16:05:06 +01:00 committed by GitHub
commit a7ce2c37b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,9 +13,9 @@ fi
cd web/ui
cp embed.go.tmpl embed.go
GZIP_OPTS="-fk"
GZIP_OPTS="-fkn"
# gzip option '-k' may not always exist in the latest gzip available on different distros.
if ! gzip -k -h &>/dev/null; then GZIP_OPTS="-f"; fi
if ! gzip -k -h &>/dev/null; then GZIP_OPTS="-fn"; fi
mkdir -p static
find static -type f -name '*.gz' -delete