mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Handle asset names containing spaces in publish-build task
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user