1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
Description: make build reproducible
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2025-08-25
--- a/jasmine-core/scripts/lib/buildDistribution.js
+++ b/jasmine-core/scripts/lib/buildDistribution.js
@@ -74,7 +74,7 @@
];
const licenseBanner = {
template: 'src/licenseBanner.js.ejs',
- data: {currentYear: new Date(Date.now()).getFullYear()}
+ data: {currentYear: new Date(process.env.SOURCE_DATE_EPOCH ? (process.env.SOURCE_DATE_EPOCH * 1000) : Date.now()).getFullYear()}
};
for (const {src, dest} of configs) {
|