Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.4 KB

File metadata and controls

58 lines (42 loc) · 1.4 KB
description
Create an RPM package for RedHat-based Linux distributions for your Electron app, using Electron Forge.

RPM

The RPM target builds .rpm files, which is the standard package format for Red Hat-based Linux distributions such as Fedora and Red Hat Enterprise Linux (RHEL).

Requirements

You can only build the RPM target on Linux machines with the rpm or rpm-build packages installed.

On Fedora you can do something like this:

sudo dnf install rpm-build

While on Debian or Ubuntu you'll need to do this:

sudo apt-get install rpm

Installation

npm install --save-dev @electron-forge/maker-rpm

Usage

To use @electron-forge/maker-rpm, add it to the makers array in your Forge configuration:

{% code title="forge.config.js" %}

module.exports = {
  makers: [
    {
      name: '@electron-forge/maker-rpm',
      config: {
        options: {
          homepage: 'http://example.com'
        }
      }
    }
  ]
};

{% endcode %}

Configuration options are documented in MakerRpmConfig.

Debugging

For advanced debug logging for this maker, add the DEBUG=electron-installer-redhat* environment variable.