|
|
@ -9,7 +9,7 @@ const presets = {
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = () => {
|
|
|
|
module.exports = () => {
|
|
|
|
let c = {};
|
|
|
|
let c = {};
|
|
|
|
for (const x of ('base,' + (oaConfig.cmdPreset || 'perf')).split(',').reduce((a, x) => a.concat(presets[x]?.split(' '))).concat((oaConfig.customFlags ?? '').split(' '))) {
|
|
|
|
for (const x of ('base,' + (oaConfig.cmdPreset || 'perf')).split(',').reduce((a, x) => a.concat(presets[x]?.split(' ')), (oaConfig.customFlags ?? '').split(' '))) {
|
|
|
|
if (!x) continue;
|
|
|
|
if (!x) continue;
|
|
|
|
const [ k, v ] = x.split('=');
|
|
|
|
const [ k, v ] = x.split('=');
|
|
|
|
|
|
|
|
|
|
|
@ -19,4 +19,4 @@ module.exports = () => {
|
|
|
|
for (const k in c) {
|
|
|
|
for (const k in c) {
|
|
|
|
app.commandLine.appendSwitch(k.replace('--', ''), c[k].join(','));
|
|
|
|
app.commandLine.appendSwitch(k.replace('--', ''), c[k].join(','));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|