OpenAsar/src/utils/buildInfo.js

5 lines
210 B
JavaScript
Raw Normal View History

2022-01-29 11:15:32 +00:00
// Use JSON parse for vaguely more security-ish
const fs = require('fs');
2021-12-09 16:25:14 +00:00
const { join } = require('path');
2022-01-29 11:15:32 +00:00
module.exports = JSON.parse(fs.readFileSync(join(process.resourcesPath, 'build_info.json'), 'utf8'));