dbgate/app/setMacPlatform.js
Jan Prochazka b151a13f65 mac build
2021-05-22 10:36:43 +02:00

9 lines
263 B
JavaScript

const fs = require('fs');
const text = fs.readFileSync('package.json', { encoding: 'utf-8' });
const json = JSON.parse(text);
json.build.mac.target.arch = process.argv[2];
fs.writeFileSync('package.json', JSON.stringify(json, null, 2), { encoding: 'utf-8' });