function iconShellHelper(shellScriptPath, icoSrc, dest) {
  return new Promise((resolve, reject) => {
    if (isWindows()) {
      reject(new Error('OSX or Linux is required'));
      return;
    }

    shell.exec(
      `"${shellScriptPath}" "${icoSrc}" "${dest}"`,
      { silent: true },
      (exitCode, stdOut, stdError) => {
        if (exitCode) {
          // eslint-disable-next-line prefer-promise-reject-errors
          reject({
            stdOut,
            stdError,
          });
          return;
        }

        resolve(dest);
      },
    );
  });
}
function iconShellHelper(shellScriptPath, icoSrc, dest) {
  return new Promise((resolve, reject) => {
    if (isWindows()) {
      reject(new Error('OSX or Linux is required'));
      return;
    }

    shell.exec(
      `"${shellScriptPath}" "${icoSrc}" "${dest}"`,
      { silent: true },
      (exitCode, stdOut, stdError) => {
        if (exitCode) {
          // eslint-disable-next-line prefer-promise-reject-errors
          reject({
            stdOut,
            stdError,
          });
          return;
        }

        resolve(dest);
      },
    );
  });
}
function iconShellHelper ( shellScriptPath , icoSrc , dest ) { return new Promise ( ( resolve , reject ) => { if ( isWindows ( ) ) { reject ( new Error ( 'OSX or Linux is required' ) ) ; return ; } shell . exec ( ` ${ shellScriptPath } ${ icoSrc } ${ dest } ` , { silent : true } , ( exitCode , stdOut , stdError ) => { if ( exitCode ) { // eslint-disable-next-line prefer-promise-reject-errors reject ( { stdOut , stdError , } ) ; return ; } resolve ( dest ) ; } , ) ; } ) ; }
Executes a shell script with the form "./pathToScript param1 param2"
@param {string} shellScriptPath
@param {string} icoSrc input .ico
@param {string} dest has to be a .ico path
Executes a shell script with the form . / pathToScript param1 param2
Helper function for iconShell