src/helpers/convertToIcns.js
function convertToIcnsTmp(pngSrc, callback) {
  const tempIconDirObj = tmp.dirSync({ unsafeCleanup: true });
  const tempIconDirPath = tempIconDirObj.name;
  convertToIcns(pngSrc, `${tempIconDirPath}/icon.icns`, callback);
}
function convertToIcnsTmp(pngSrc, callback) {
  const tempIconDirObj = tmp.dirSync({ unsafeCleanup: true });
  const tempIconDirPath = tempIconDirObj.name;
  convertToIcns(pngSrc, `${tempIconDirPath}/icon.icns`, callback);
}
function convertToIcnsTmp ( pngSrc , callback ) { const tempIconDirObj = tmp . dirSync ( { unsafeCleanup : true } ) ; const tempIconDirPath = tempIconDirObj . name ; convertToIcns ( pngSrc , ` ${ tempIconDirPath } ` , callback ) ; }
Converts the png to a temporary directory which will be cleaned up on process exit
@param {string} pngSrc
@param {pngToIcnsCallback} callback
Converts the png to a temporary directory which will be cleaned up on process exit