src/build/buildMain.js
function maybeNoIconOption(options) {
  const packageOptions = JSON.parse(JSON.stringify(options));
  if (options.platform === 'win32' && !isWindows()) {
    if (!hasBinary.sync('wine')) {
      log.warn(
        'Wine is required to set the icon for a Windows app when packaging on non-windows platforms',
      );
      packageOptions.icon = null;
    }
  }
  return packageOptions;
}
function maybeNoIconOption(options) {
  const packageOptions = JSON.parse(JSON.stringify(options));
  if (options.platform === 'win32' && !isWindows()) {
    if (!hasBinary.sync('wine')) {
      log.warn(
        'Wine is required to set the icon for a Windows app when packaging on non-windows platforms',
      );
      packageOptions.icon = null;
    }
  }
  return packageOptions;
}
function maybeNoIconOption ( options ) { const packageOptions = JSON . parse ( JSON . stringify ( options ) ) ; if ( options . platform === 'win32' && ! isWindows ( ) ) { if ( ! hasBinary . sync ( 'wine' ) ) { log . warn ( 'Wine is required to set the icon for a Windows app when packaging on non-windows platforms' , ) ; packageOptions . icon = null ; } } return packageOptions ; }
Removes the `icon` parameter from options if building for Windows while not on Windows
and Wine is not installed
@param options
Removes the icon parameter from options if building for Windows while not on Windows and Wine is not installed