mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-11-11 15:51:06 +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(
|
shell.exec(
|
||||||
`${PNG_TO_ICNS_BIN_PATH} ${pngSrc} ${icnsDest}`,
|
`"${PNG_TO_ICNS_BIN_PATH}" "${pngSrc}" "${icnsDest}"`,
|
||||||
{ silent: true },
|
{ silent: true },
|
||||||
(exitCode, stdOut, stdError) => {
|
(exitCode, stdOut, stdError) => {
|
||||||
if (stdOut.includes('icon.iconset:error') || exitCode) {
|
if (stdOut.includes('icon.iconset:error') || exitCode) {
|
||||||
|
@ -28,7 +28,7 @@ function iconShellHelper(shellScriptPath, icoSrc, dest) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
shell.exec(
|
shell.exec(
|
||||||
`${shellScriptPath} ${icoSrc} ${dest}`,
|
`"${shellScriptPath}" "${icoSrc}" "${dest}"`,
|
||||||
{ silent: true },
|
{ silent: true },
|
||||||
(exitCode, stdOut, stdError) => {
|
(exitCode, stdOut, stdError) => {
|
||||||
if (exitCode) {
|
if (exitCode) {
|
||||||
|
Loading…
Reference in New Issue
Block a user