Skip to content

rpm

Build your Flutter app as an RPM package for installation on Red Hat-based Linux distributions such as Fedora, RHEL, CentOS, and OpenSUSE. RPM is the standard package management format used by these distributions.

Requirements

  • Linux system (Fedora/RHEL-based distribution recommended)
  • patchelf — for modifying ELF binaries
  • rpmbuild — RPM package builder

Install requirements:

  • Debian/Ubuntu: apt install rpm patchelf
  • Fedora: dnf install gcc rpm-build rpm-devel rpmlint make python bash coreutils diffutils patch rpmdevtools patchelf
  • Arch: yay -S rpmdevtools patchelf or pamac install rpmdevtools patchelf

Usage

Add make_config.yaml to your project linux/packaging/rpm directory.

yaml
icon: assets/logo.png
summary: A really cool application
group: Application/Emulator
vendor: Kingkor Roy Tirtho
packager: Kingkor Roy Tirtho
packagerEmail: krtirtho@gmail.com
license: GPLv3
url: https://github.com/fastforgedev/fastforge

display_name: Hello World

keywords:
  - Hello
  - World
  - Test
  - Application

generic_name: Cool Application

categories:
  - Cool
  - Awesome

startup_notify: true
# You can also specify [metainfo](https://freedesktop.org/software/appstream/docs/chap-Quickstart.html) file
# which contains metadata of the app.
# metainfo: linux/packaging/myappid.appdata.xml

Run:

fastforge package --platform linux --targets rpm

Released under the MIT License.