简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM