AppImage packaging utilities for CMake
npm install cmake-app-imageCMake functions for packaging Pear applications into AppImages for Linux.
#### download_app_image_run
Downloads the AppRun runtime component, required for executing AppImages.
``cmake`
download_app_image_run(DESTINATION
##### DESTINATION
The desired location to save the downloaded AppRun file.
#### download_app_image_tool
Fetches the AppImageTool utility, used to create and package AppImages.
`cmake`
download_app_image_tool(DESTINATION
##### DESTINATION
The directory where the AppImageTool file will be saved.
#### add_app_image
The core function to define and generate an AppImage for the application.
`cmake`
add_app_image(
[DESTINATION
NAME
DESCRIPTION
[ICON
[CATEGORY
[TARGET
[EXECUTABLE
[APP_DIR
[RESOURCES [FILE|DIR
[DEPENDS
)
#####
The name of the CMake target to create.
##### DESTINATION "${NAME}.AppImage"
The output path for the generated AppImage file. Defaults to .
##### NAME
The name of the application.
##### DESCRIPTION
A short description of the application.
##### ICON
Path to the application icon file.
##### CATEGORY
The category for the app in Linux application menus.
##### TARGET
An existing CMake target to execute as the main application entry point.
##### EXECUTABLE TARGET
The direct path to the executable file. Use if not using the option.
##### APP_DIR "${NAME}.AppDir"
The base directory to use for the AppImage contents. Defaults to .
##### RESOURCES [FILE|DIR
Additional files or directories to include in the AppImage.
###### FILE
Copies a single file from to inside the AppImage.
###### DIR
Copies an entire directory from to inside the AppImage.
##### DEPENDS
CMake targets the AppImage build depends on.
Apache-2.0