Skip to content

AppImage

Requirements

  • locate

    On Ubuntu/Debian based linux, run:

    Terminal window
    $ sudo apt install locate
  • AppImageTool

To install Appimage Builder, run:

Terminal window
wget -O appimagetool "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
chmod +x appimagetool
mv appimagetool /usr/local/bin/

Last command may require sudo privileges

Usage

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

display_name: Hello World
icon: assets/logo.png
keywords:
- Hello
- World
- Test
- Application
generic_name: Cool Application
actions:
- name: Say Hi
label: say-hi
arguments:
- --say
- hi
- name: Say Bye
label: say-bye
arguments:
- --say
- bye
categories:
- Music
startup_notify: true
# You can specify the shared libraries that you want to bundle with your app
#
# flutter_distributor automatically detects the shared libraries that your app
# depends on, but you can also specify them manually here.
#
# The following example shows how to bundle the libcurl library with your app.
#
# include:
# - libcurl.so.4
include: []
# 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:

Terminal window
flutter_distributor package --platform linux --targets appimage