From 5743eb7023e056dadd332348bd4718ed30bb2759 Mon Sep 17 00:00:00 2001 From: Oskar Risberg Date: Thu, 13 Jun 2019 17:34:27 +0200 Subject: [PATCH] Fix issues with paths being double-escaped --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 3ed8932..900ed9e 100644 --- a/index.js +++ b/index.js @@ -25,11 +25,13 @@ module.exports = function (file, callback){ var path = glob.sync(output.path + '/Payload/*/')[0]; data.metadata = plist.readFileSync(Path.join(path, 'Info.plist')); - path = path.replace(/ /g, '\\ '); var tasks = [ async.apply(provisioning, Path.join(path, 'embedded.mobileprovision')) ]; + // provisioning uses cert-download which escapes paths with "" + // if we ALSO escape with \\ that breaks the command + path = path.replace(/ /g, '\\ '); // `entitlements` relies on a OS X only CLI tool called `codesign` if(process.platform === 'darwin'){