mac build

This commit is contained in:
Jan Prochazka
2021-05-22 10:36:43 +02:00
parent 3f7caa6078
commit b151a13f65
4 changed files with 22 additions and 1 deletions

8
app/setMacPlatform.js Normal file
View File

@@ -0,0 +1,8 @@
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' });