Skip to content

Commit

Permalink
fix(core): fix make not respecting mas as a target platform
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed May 1, 2018
1 parent 3f9ec6b commit 10b3876
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/api/core/src/api/make.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default async ({
} = {};
const targets = (overrideTargets || forgeConfig.makers.filter(
maker => maker.platforms
? maker.platforms.indexOf(platform) !== -1
? maker.platforms.indexOf(actualTargetPlatform) !== -1
: true
)).map((target) => {
if (typeof target === 'string') {
Expand Down Expand Up @@ -145,7 +145,7 @@ export default async ({
warn(interactive, 'WARNING: Skipping the packaging step, this could result in an out of date build'.red);
}

info(interactive, `Making for the following targets: ${`${targets.join(', ')}`.cyan}`);
info(interactive, `Making for the following targets: ${`${targets.map((t, i) => makers[i].name).join(', ')}`.cyan}`);

const packageJSON = await readPackageJSON(dir);
const appName = forgeConfig.packagerConfig.name || packageJSON.productName || packageJSON.name;
Expand All @@ -165,7 +165,7 @@ export default async ({
targetId += 1;

// eslint-disable-next-line no-loop-func
await asyncOra(`Making for target: ${maker.name} - On platform: ${actualTargetPlatform.cyan} - For arch: ${targetArch.cyan}`, async () => {
await asyncOra(`Making for target: ${maker.name.green} - On platform: ${actualTargetPlatform.cyan} - For arch: ${targetArch.cyan}`, async () => {
try {
const artifacts = await maker.make({
dir: packageDir,
Expand Down

0 comments on commit 10b3876

Please sign in to comment.