Handle asset names containing spaces in publish-build task

This commit is contained in:
Max Brunsfeld
2015-10-06 09:37:35 -07:00
parent c9382299ad
commit 9db8edc954

View File

@@ -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?