Set TZ=UTC before calls to zip

This change allows to make the package build reproducible.

Bug-Debian: https://bugs.debian.org/793127
This commit is contained in:
Dhole 2015-07-21 16:29:12 +02:00 committed by David Prévot
parent c6ba5ea42e
commit de83de0a58

View File

@ -861,6 +861,9 @@ target.firefox = function() {
sed('-i', /.*PDFJS_SUPPORTED_LOCALES.*\n/, chromeManifest,
FIREFOX_BUILD_DIR + '/chrome.manifest');
// Set timezone to UTC before calling zip to get reproducible results.
process.env.TZ = 'UTC';
// Create the xpi
cd(FIREFOX_BUILD_DIR);
exec('zip -r ' + FIREFOX_EXTENSION_NAME + ' ' +