forked from Mirrors/OpenAsar
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
319 B
8 lines
319 B
// Discord uses require but we'll use JSON parse for vaguely more security-ish
|
|
const { readFileSync } = require('fs');
|
|
const { join } = require('path');
|
|
|
|
const buildInfoPath = join(process.resourcesPath, 'build_info.json');
|
|
const buildInfo = JSON.parse(readFileSync(buildInfoPath, 'utf8'));
|
|
|
|
module.exports = buildInfo; |