diff --git a/CMakeLists.txt b/CMakeLists.txt index 5844377..e14ee27 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,8 @@ set(CMAKE_AUTORCC ON) set(CMAKE_CXX_STANDARD 23) set(CMAKE_CXX_STANDARD_REQUIRED ON) +option(IS_FLATPAK "Whether this is being built for a flatpak." OFF) + # jsoncpp find_package(PkgConfig REQUIRED) pkg_check_modules(JSONCPP jsoncpp) @@ -244,3 +246,8 @@ target_link_libraries(Limo install(TARGETS Limo BUNDLE DESTINATION . LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) + +if(IS_FLATPAK) + install(FILES resources/io.github.limo_app.limo.png + DESTINATION /app/share/icons/hicolor/512x512/apps) +endif() diff --git a/README.md b/README.md index 5e5e5d7..d3faa51 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,16 @@ General purpose mod manager primarily developed for Linux with support for the [ ## Installation +## (Optional) Unrar +Limo uses libarchive in order to extract compressed mods. Because this currently does not work for certain RAR5 archives, +you can optionally install the unrar package and enter the path to its binary into the Limo settings dialog (if not detected automatically). +Unfortunately unrar is not open source software and seems to be the only reliable way to unpack those archives. + +On Debian based systems unrar can be installed like this: +``` +sudo apt install unrar +``` + ### Build from source #### Install the dependencies diff --git a/resources/io.github.limo_app.limo.png b/resources/io.github.limo_app.limo.png new file mode 100644 index 0000000..f4d3905 Binary files /dev/null and b/resources/io.github.limo_app.limo.png differ