diff --git a/src/helpers/convertToIcns.js b/src/helpers/convertToIcns.js index de739d6..ea0b9fa 100644 --- a/src/helpers/convertToIcns.js +++ b/src/helpers/convertToIcns.js @@ -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) { diff --git a/src/helpers/iconShellHelpers.js b/src/helpers/iconShellHelpers.js index 95ac645..4259d72 100644 --- a/src/helpers/iconShellHelpers.js +++ b/src/helpers/iconShellHelpers.js @@ -28,7 +28,7 @@ function iconShellHelper(shellScriptPath, icoSrc, dest) { } shell.exec( - `${shellScriptPath} ${icoSrc} ${dest}`, + `"${shellScriptPath}" "${icoSrc}" "${dest}"`, { silent: true }, (exitCode, stdOut, stdError) => { if (exitCode) {