From 30f4abeb1245c6211c22db7b15cfc07ca621e927 Mon Sep 17 00:00:00 2001 From: Hongarc Date: Mon, 9 Mar 2020 13:12:03 +0700 Subject: [PATCH] Fix `app` option on Windows (#172) Co-authored-by: Sindre Sorhus --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 5fe49ad..675ce49 100644 --- a/index.js +++ b/index.js @@ -77,6 +77,10 @@ module.exports = async (target, options) => { // As a result, all double-quotes are stripped from the `target` and do not get to your desired destination. target = `"${target}"`; childProcessOptions.windowsVerbatimArguments = true; + + if (options.app) { + options.app = `"${options.app}"`; + } } if (options.wait) {