From 42ff8cbea5fe224fb045b11f135cc28a81281cb5 Mon Sep 17 00:00:00 2001 From: Igor Klopov Date: Wed, 28 Jun 2017 14:08:05 +0300 Subject: [PATCH] append '.exe' when single windows target. fixes #148 --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index f20c46384..4e5b117f1 100644 --- a/lib/index.js +++ b/lib/index.js @@ -305,7 +305,7 @@ export async function exec (argv2) { // eslint-disable-line complexity if (targets.length === 1) { const target = targets[0]; let file = output; - if (target.platform === 'win' && autoOutput) file += '.exe'; + if (target.platform === 'win') file += '.exe'; target.output = file; } else { for (const target of targets) {