2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-23 02:28:55 +00:00

Icon conversion: don't crash if source/destination paths have spaces (PR #736)

This commit is contained in:
Dword 2019-01-09 16:08:17 +01:00 committed by Ronan Jouchet
parent c722f8a5ac
commit 3588f8a85f
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -28,7 +28,7 @@ function iconShellHelper(shellScriptPath, icoSrc, dest) {
}
shell.exec(
`${shellScriptPath} ${icoSrc} ${dest}`,
`"${shellScriptPath}" "${icoSrc}" "${dest}"`,
{ silent: true },
(exitCode, stdOut, stdError) => {
if (exitCode) {