mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
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:
parent
c6ba5ea42e
commit
de83de0a58
1 changed files with 3 additions and 0 deletions
3
make.js
3
make.js
|
@ -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 + ' ' +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue