2019-12-03 15:52:01 +01:00
|
|
|
const manifest = require('../app/manifest.json')
|
2020-01-09 04:34:58 +01:00
|
|
|
|
2019-12-03 15:52:01 +01:00
|
|
|
const version = manifest.version
|
2016-10-04 21:38:58 +02:00
|
|
|
|
2019-12-03 15:52:01 +01:00
|
|
|
const fs = require('fs')
|
|
|
|
const path = require('path')
|
2020-01-09 04:34:58 +01:00
|
|
|
|
2019-12-03 15:52:01 +01:00
|
|
|
const changelog = fs.readFileSync(path.join(__dirname, '..', 'CHANGELOG.md')).toString()
|
2016-10-04 21:38:58 +02:00
|
|
|
|
2019-12-03 15:52:01 +01:00
|
|
|
const log = changelog.split(version)[1].split('##')[0].trim()
|
2016-10-04 21:38:58 +02:00
|
|
|
|
2018-07-03 00:49:33 +02:00
|
|
|
const msg = `*MetaMask ${version}* now published! It should auto-update soon!\n${log}`
|
2016-10-04 21:38:58 +02:00
|
|
|
|
|
|
|
console.log(msg)
|