Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.52 KB

flatpak.md

File metadata and controls

43 lines (31 loc) · 1.52 KB
description
Create a Flatpak app for your Electron app using Electron Forge.

Flatpak

The Flatpak target builds .flatpak files, which is a packaging format for Linux distributions that allows for sandboxed installation of applications in isolation from the rest of their system. In contrast, typical deb.md or rpm.md installation methods are not sandboxed.

Requirements

You can only build the Flatpak target if you have flatpak, flatpak-builder, and eu-strip (usually part of the elfutils package) installed on your system.

Installation

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

Usage

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

module.exports = {
  makers: [
    {
      name: '@electron-forge/maker-flatpak',
      config: {
        options: {
          categories: ['Video'],
          mimeType: ['video/h264']
        }
      }
    }
  ]
};

Configuration options are documented in MakerFlatpakConfig.

Debugging

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