mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-23 10:38:55 +00:00
Icon conversion: don't crash if source/destination paths have spaces (PR #736)
This commit is contained in:
parent
c722f8a5ac
commit
3588f8a85f
@ -27,7 +27,7 @@ function convertToIcns(pngSrc, icnsDest, callback) {
|
||||
}
|
||||
|
||||
shell.exec(
|
||||
`${PNG_TO_ICNS_BIN_PATH} ${pngSrc} ${icnsDest}`,
|
||||
`"${PNG_TO_ICNS_BIN_PATH}" "${pngSrc}" "${icnsDest}"`,
|
||||
{ silent: true },
|
||||
(exitCode, stdOut, stdError) => {
|
||||
if (stdOut.includes('icon.iconset:error') || exitCode) {
|
||||
|
@ -28,7 +28,7 @@ function iconShellHelper(shellScriptPath, icoSrc, dest) {
|
||||
}
|
||||
|
||||
shell.exec(
|
||||
`${shellScriptPath} ${icoSrc} ${dest}`,
|
||||
`"${shellScriptPath}" "${icoSrc}" "${dest}"`,
|
||||
{ silent: true },
|
||||
(exitCode, stdOut, stdError) => {
|
||||
if (exitCode) {
|
||||
|
Loading…
Reference in New Issue
Block a user