From 9db8edc95415b985e1d25f7459bee73153e54012 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 6 Oct 2015 09:37:35 -0700 Subject: [PATCH] Handle asset names containing spaces in publish-build task --- build/tasks/publish-build-task.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/tasks/publish-build-task.coffee b/build/tasks/publish-build-task.coffee index 86b397018..d278706f8 100644 --- a/build/tasks/publish-build-task.coffee +++ b/build/tasks/publish-build-task.coffee @@ -121,7 +121,7 @@ zipAssets = (buildDir, assets, callback) -> if process.platform is 'win32' zipCommand = "C:/psmodules/7z.exe a -r #{assetName} #{sourcePath}" else - zipCommand = "zip -r --symlinks #{assetName} #{sourcePath}" + zipCommand = "zip -r --symlinks '#{assetName}' '#{sourcePath}'" options = {cwd: directory, maxBuffer: Infinity} child_process.exec zipCommand, options, (error, stdout, stderr) -> logError("Zipping #{sourcePath} failed", error, stderr) if error?