Skip to content

Instantly share code, notes, and snippets.

@gjedeer
Last active May 30, 2019 10:38
Show Gist options
  • Save gjedeer/bfe98db2c5c724240910cb061fdf245c to your computer and use it in GitHub Desktop.
Save gjedeer/bfe98db2c5c724240910cb061fdf245c to your computer and use it in GitHub Desktop.
Creating appimages

Packaging a native binary to AppImage

Prequisites:

Both AppImage files need to be downloaded to the same directory.

Code:

You need to create a "desktop file", here's an example for a terminal program:

[Desktop Entry]
Type=Application
Name=My Program
Exec=myprogram
Comment=My Super Program
Categories=Development;
Icon=ei-pencil
Terminal=true

Save it as myprogram.desktop

You also need an SVG icon for your program, for example one of: https://github.com/evil-icons/evil-icons/tree/master/assets/icons

The "Icon=" entry in .desktop file must match the file name, without .svg

Run it:

You need to run the commands while being in a git repo. If you don't have a relevant repo, just run "git init" in the directory with .desktop file.

~/linuxdeploy-centos6-x86_64.AppImage --appdir AppDir --output appimage -e /home/you/bin/myprogram -d /home/you/myprogram.desktop -i /home/you/ei-pencil.svg

That's about fucking it.

Documentation:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment