Skip to content
Permalink
Browse files

feat(maker): allow user to override make targets

  • Loading branch information
MarshallOfSound authored and malept committed Dec 27, 2016
1 parent 07f06b4 commit bac86800a4a96778f171d2540b898d694cf7ac13
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/electron-forge-make.js
@@ -21,6 +21,7 @@ const main = async () => {
.option('--skip-package', 'Assume the app is already packaged')
.option('-a, --arch [arch]', 'Target architecture')
.option('-p, --platform [platform]', 'Target build platform')
.option('-t, --targets [targets]', 'Override your mnake targets for this run')
.allowUnknownOption(true)
.action((cwd) => {
if (!cwd) return;
@@ -58,7 +59,10 @@ const main = async () => {
const declaredPlatform = program.platform || process.platform;

const forgeConfig = await getForgeConfig(dir);
const targets = forgeConfig.make_targets[declaredPlatform];
let targets = forgeConfig.make_targets[declaredPlatform];
if (program.targets) {
targets = program.targets.split(',');
}

console.info('Making for the following targets:', `${targets.join(', ')}`.cyan);

0 comments on commit bac8680

Please sign in to comment.
You can’t perform that action at this time.