diff --git a/lib/core-icons.rss b/lib/core-icons.rss
index 15393936..188e58cc 100644
--- a/lib/core-icons.rss
+++ b/lib/core-icons.rss
@@ -10,8 +10,8 @@
Sketch
-
Core Icons
- Thu, 06 Sep 2018 06:50:00 GMT
-
+ Mon, 10 Sep 2018 14:38:17 GMT
+
diff --git a/lib/core-icons.sketch b/lib/core-icons.sketch
index c19cf513..78373fc6 100644
Binary files a/lib/core-icons.sketch and b/lib/core-icons.sketch differ
diff --git a/rollup.config.js b/rollup.config.js
index 984b49da..23ea2bb0 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -67,17 +67,15 @@ function intro () {
return `'${file.slice(0, -4)}':['${body}',${size[2]},${size[3]}]` // Generate JS instead of JSON to save bytes
})
- const coeff = 1000 * 60 * 5 // Round to nearest 5 minutes so RSS date does not change too often
- const date = new Date(Math.round(Date.now() / coeff) * coeff)
- const semverint = Number(pkg.version.split('.').map((v) => v.padStart(3, '0')).join(''))
const sketch = String(fs.readFileSync('./lib/core-icons.rss'))
+ const date = new Date(fs.statSync('./lib/core-icons.rss').mtime)
const docs = String(fs.readFileSync('./lib/docs.md'))
fs.writeFileSync('./lib/core-icons.json', JSON.stringify(files))
fs.writeFileSync('./lib/docs.md', docs.replace(/\/major\/\d+/, `/major/${pkg.version.match(/\d+/)}`))
fs.writeFileSync('./lib/core-icons.rss', sketch
.replace(/()[^<]+/, `$1${date.toUTCString()}`) // Add publish date to sketch
- .replace(/(sparkle:version=")[^"]+/, `$1${semverint}`)) // Convert semver to int version number
+ .replace(/(sparkle:version=")[^"]+/, `$1${date.getTime()}`)) // Use mtime as version
return `var ICONS = {${icons.join(',')}}`
}