Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add resources in appimage

I am trying to create AppImage for a C++ application. I have few resources that I have to bundle, like shader files and fonts and images used in the application. They are put into a 'resources' folder.

I am using appimage-builder to generate the AppImage by following the guide here.

When I run the AppRun executable, I get segmentation fault. I suspect it is because of not bundling the resources folder in AppRun.

Kindly help me in bundling the extra folders with appimage-builder.

like image 639
Jyothikumar S. Avatar asked Dec 10 '25 07:12

Jyothikumar S.


1 Answers

To bundle additional resources into an AppImage is enough to just copy them into the AppDir before calling appimage-builder. Or add the copy instructions in the recipe script section

In the application code you can look for the APPDIR environment variable which will be set at runtime. This variable will hold the path to the AppDir at runtime.

like image 153
Alexis Avatar answered Dec 11 '25 19:12

Alexis