From 814741255705aa4f3debde67df3f7b13ce769e71 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 2 Mar 2015 00:37:06 -0800 Subject: [PATCH] Record release date and use it to build 4chan-X.zip deterministically. --- Gruntfile.coffee | 2 ++ package.json | 1 + 2 files changed, 3 insertions(+) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 39e2878ca..4a7752092 100755 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -209,6 +209,7 @@ module.exports = (grunt) -> flatten: true src: 'testbuilds/crx<%= pkg.meta.suffix.noupdate %>/*' dest: '/' + date: '<%= pkg.meta.date %>' clean: builds: 'builds' @@ -376,6 +377,7 @@ module.exports = (grunt) -> pkg = grunt.file.readJSON 'package.json' oldversion = pkg.meta.version pkg.meta.version = version + pkg.meta.date = new Date() grunt.config 'pkg', pkg grunt.file.write 'package.json', JSON.stringify(pkg, null, 2) + '\n' grunt.log.ok "Version updated from v#{oldversion} to v#{version}." diff --git a/package.json b/package.json index 847ec768a..837dd7f56 100755 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "meta": { "name": "4chan X", "version": "1.10.2.8", + "date": "2015-02-28T19:31:56.000Z", "repo": "https://github.com/ccd0/4chan-x/", "page": "https://github.com/ccd0/4chan-x", "downloads": "https://ccd0.github.io/4chan-x/builds/",