Electron Forge
  • Getting Started
  • Importing an Existing Project
  • CLI
  • Core Concepts
    • Why Electron Forge?
    • Build Lifecycle
  • Configuration
    • Configuration Overview
    • TypeScript Setup
    • Plugins
      • Webpack Plugin
      • Vite Plugin
      • Electronegativity Plugin
      • Auto Unpack Native Modules Plugin
      • Local Electron Plugin
      • Fuses Plugin
    • Makers
      • AppX
      • deb
      • DMG
      • Flatpak
      • pkg
      • RPM
      • Snapcraft
      • Squirrel.Windows
      • WiX MSI
      • ZIP
    • Publishers
      • Bitbucket
      • Electron Release Server
      • GitHub
      • Google Cloud Storage
      • Nucleus
      • S3
      • Snapcraft
    • Hooks
  • Built-in Templates
    • Webpack
    • Webpack + Typescript
    • Vite
    • Vite + TypeScript
  • Guides
    • Code Signing
      • Signing a Windows app
      • Signing a macOS app
    • Custom App Icons
    • Framework Integration
      • React
      • React with TypeScript
      • Vue 3
    • Developing with WSL
  • Advanced
    • Auto Update
    • Debugging
    • Extending Electron Forge
      • Writing Plugins
      • Writing Templates
      • Writing Makers
      • Writing Publishers
    • API Docs
Powered by GitBook
On this page
  • Requirements
  • Installation
  • Usage
  • Debugging

Was this helpful?

Edit on GitHub
  1. Configuration
  2. Makers

RPM

Create an RPM package for RedHat-based Linux distributions for your Electron app, using Electron Forge.

PreviouspkgNextSnapcraft

Last updated 11 months ago

Was this helpful?

The RPM target builds .rpm files, which is the standard package format for Red Hat-based Linux distributions such as and (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.config.js
module.exports = {
  makers: [
    {
      name: '@electron-forge/maker-rpm',
      config: {
        options: {
          homepage: 'http://example.com'
        }
      }
    }
  ]
};

Debugging

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

Configuration options are documented in .

Fedora
Red Hat Enterprise Linux
Forge configuration
MakerRpmConfig