Merge pull request #10645 from atom/only-finger-print-electron-version

Only use electron version in fingerprint
This commit is contained in:
Kevin Sawicki 2016-02-01 16:56:09 -08:00
commit d50e7df414

View File

@ -7,7 +7,11 @@ var fingerprintPath = path.resolve(__dirname, '..', '..', 'node_modules', '.atom
module.exports = {
fingerprint: function () {
var packageJson = fs.readFileSync(path.resolve(__dirname, '..', '..', 'package.json'))
var body = packageJson.toString() + process.platform + process.version
//Include the electron minor version in the fingerprint since that changing requires a re-install
var electronVersion = JSON.parse(packageJson).electronVersion.replace(/\.\d+$/, '')
var body = electronVersion + process.platform + process.version
return crypto.createHash('sha1').update(body).digest('hex')
},