not working but better

This commit is contained in:
Malte Jürgens 2022-07-16 19:09:11 +02:00
parent c4c32b1615
commit b2f5f8e7d0
No known key found for this signature in database
GPG Key ID: D29FBD5F93C0CFC3
4 changed files with 5 additions and 2 deletions

View File

@ -33,5 +33,6 @@ target_link_libraries(${CMAKE_PROJECT_NAME} Qt5::Widgets Qt5::WebEngineWidgets r
install(TARGETS ${CMAKE_PROJECT_NAME} DESTINATION bin) install(TARGETS ${CMAKE_PROJECT_NAME} DESTINATION bin)
install(PROGRAMS assets/${CMAKE_PROJECT_NAME}.desktop DESTINATION share/applications) 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}) add_custom_target(appimage ${CMAKE_SOURCE_DIR}/scripts/build-appimage.sh WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})

BIN
assets/discord.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

View File

@ -19,5 +19,7 @@ appdir="$tmpdir/AppDir"
cmake -B "$builddir" -S "$PWD" cmake -B "$builddir" -S "$PWD"
cmake --build "$builddir" --config Release cmake --build "$builddir" --config Release
DESTDIR="$appdir" cmake --install "$builddir" --prefix "/usr" 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

View File

@ -16,7 +16,7 @@ fi
echo "-> Installing dependencies with apt..." echo "-> Installing dependencies with apt..."
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
apt-get update 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..." echo "-> Installing linuxdeployqt..."
tmpdir="$(mktemp -d)" tmpdir="$(mktemp -d)"