src/installer.js
function (options, dir, callback) {
  async.forEachOf(options.icon, function (icon, resolution, callback) {
    var iconFile = path.join(dir, 'share/icons/hicolor', resolution, 'apps', options.id + '.png')
    options.logger('Creating icon file at ' + iconFile)

    fs.copy(icon, iconFile, callback)
  }, function (err) {
    callback(err && new Error('Error creating icon file: ' + (err.message || err)))
  })
}
function (options, dir, callback) {
  async.forEachOf(options.icon, function (icon, resolution, callback) {
    var iconFile = path.join(dir, 'share/icons/hicolor', resolution, 'apps', options.id + '.png')
    options.logger('Creating icon file at ' + iconFile)

    fs.copy(icon, iconFile, callback)
  }, function (err) {
    callback(err && new Error('Error creating icon file: ' + (err.message || err)))
  })
}
function ( options , dir , callback ) { async . forEachOf ( options . icon , function ( icon , resolution , callback ) { var iconFile = path . join ( dir , 'share/icons/hicolor' , resolution , 'apps' , options . id + '.png' ) options . logger ( 'Creating icon file at ' + iconFile ) fs . copy ( icon , iconFile , callback ) } , function ( err ) { callback ( err && new Error ( 'Error creating icon file: ' + ( err . message || err ) ) ) } ) }
Create hicolor icon for the package.
Create hicolor icon for the package .