22 lines
389 B
JavaScript
22 lines
389 B
JavaScript
"use strict";
|
|
|
|
const builder = require("electron-builder");
|
|
const builds = {};
|
|
process.argv.slice(1).forEach(a => {
|
|
if (a === "--linux") {
|
|
builds.linux = [];
|
|
}
|
|
if (a === "--win") {
|
|
builds.win = [];
|
|
}
|
|
if (a === "--mac") {
|
|
builds.mac = [];
|
|
|
|
}
|
|
});
|
|
builder.build(builds).then(e => {
|
|
console.log(e);
|
|
}).catch(e => {
|
|
console.error(e);
|
|
});
|