diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e90596..bf81713 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,5 +33,6 @@ target_link_libraries(${CMAKE_PROJECT_NAME} Qt5::Widgets Qt5::WebEngineWidgets r install(TARGETS ${CMAKE_PROJECT_NAME} DESTINATION bin) install(PROGRAMS assets/${CMAKE_PROJECT_NAME}.desktop DESTINATION share/applications) +install(FILES assets/discord.png DESTINATION share/pixmaps) add_custom_target(appimage ${CMAKE_SOURCE_DIR}/scripts/build-appimage.sh WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) diff --git a/assets/discord.png b/assets/discord.png new file mode 100644 index 0000000..15cb214 Binary files /dev/null and b/assets/discord.png differ diff --git a/scripts/build-appimage.sh b/scripts/build-appimage.sh index f388d02..37038cb 100755 --- a/scripts/build-appimage.sh +++ b/scripts/build-appimage.sh @@ -19,5 +19,7 @@ appdir="$tmpdir/AppDir" cmake -B "$builddir" -S "$PWD" cmake --build "$builddir" --config Release DESTDIR="$appdir" cmake --install "$builddir" --prefix "/usr" +mkdir -p "$appdir/usr/share/doc/libc6" +touch "$appdir/usr/share/doc/libc6/copyright" -linuxdeployqt "$appdir/usr/share/applications/discord-screenaudio.desktop" -appimage -extra-plugins=iconengines,platformthemes/libqgtk3.so +linuxdeployqt "$appdir/usr/share/applications/discord-screenaudio.desktop" -appimage -extra-plugins=iconengines,platformthemes/libqgtk3.so -unsupported-allow-new-glibc diff --git a/scripts/prepare-container.sh b/scripts/prepare-container.sh index 87da3c3..c3f297b 100755 --- a/scripts/prepare-container.sh +++ b/scripts/prepare-container.sh @@ -16,7 +16,7 @@ fi echo "-> Installing dependencies with apt..." export DEBIAN_FRONTEND=noninteractive apt-get update -apt-get install -y curl build-essential qtbase5-dev qtwebengine5-dev qt5-qmake cmake git libpipewire-0.3-dev +apt-get install -y curl build-essential qtbase5-dev qtwebengine5-dev qt5-qmake cmake pkg-config git libpipewire-0.3-dev echo "-> Installing linuxdeployqt..." tmpdir="$(mktemp -d)"