Record release date and use it to build 4chan-X.zip deterministically.

This commit is contained in:
ccd0 2015-03-02 00:37:06 -08:00
parent bc16814a7a
commit 8147412557
2 changed files with 3 additions and 0 deletions

View File

@ -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}."

View File

@ -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/",