File: reproducible-build.patch

package info (click to toggle)
vue-router.js 3.6.5~ds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,584 kB
  • sloc: javascript: 8,538; sh: 22; makefile: 6
file content (19 lines) | stat: -rw-r--r-- 658 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Make the build reproducible
Author: Chris Lamb <lamby@debian.org>
Forwarded: not-needed
Last-Update: 2019-03-12

--- a/build/configs.js
+++ b/build/configs.js
@@ -5,9 +5,10 @@
 const node = require('@rollup/plugin-node-resolve').nodeResolve
 const replace = require('rollup-plugin-replace')
 const version = process.env.VERSION || require('../package.json').version
+const now = new Date(process.env.SOURCE_DATE_EPOCH ? (process.env.SOURCE_DATE_EPOCH * 1000) : new Date().getTime());
 const banner = `/*!
   * vue-router v${version}
-  * (c) ${new Date().getFullYear()} Evan You
+  * (c) ${now.getFullYear()} Evan You
   * @license MIT
   */`