Skip to content

Commit

Permalink
Update dolphin-emu-appimage.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Samueru-sama authored Jan 13, 2025
1 parent f20aa79 commit bcc5455
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions dolphin-emu-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,26 @@ cp -r /usr/local/share/dolphin-emu/sys ./bin/Sys

# Deploy Qt manually xd
mkdir -p ./shared/lib/qt6/plugins
cp -vr /usr/lib/x86_64-linux-gnu/qt6/plugins/iconengines ./shared/lib/qt6/plugins
cp -vr /usr/lib/x86_64-linux-gnu/qt6/plugins/imageformats ./shared/lib/qt6/plugins
cp -vr /usr/lib/x86_64-linux-gnu/qt6/plugins/platforms ./shared/lib/qt6/plugins
cp -vr /usr/lib/x86_64-linux-gnu/qt6/plugins/platformthemes ./shared/lib/qt6/plugins || true
cp -vr /usr/lib/x86_64-linux-gnu/qt6/plugins/styles ./shared/lib/qt6/plugins
cp -vr /usr/lib/x86_64-linux-gnu/qt6/plugins/xcbglintegrations ./shared/lib/qt6/plugins
cp -vr /usr/lib/x86_64-linux-gnu/qt6/plugins/wayland-* ./shared/lib/qt6/plugins || true
cp -vr /usr/lib/qt6/plugins/iconengines ./shared/lib/qt6/plugins
cp -vr /usr/lib/qt6/plugins/imageformats ./shared/lib/qt6/plugins
cp -vr /usr/lib/qt6/plugins/platforms ./shared/lib/qt6/plugins
cp -vr /usr/lib/qt6/plugins/platformthemes ./shared/lib/qt6/plugins || true
cp -vr /usr/lib/qt6/plugins/styles ./shared/lib/qt6/plugins
cp -vr /usr/lib/qt6/plugins/xcbglintegrations ./shared/lib/qt6/plugins
cp -vr /usr/lib/qt6/plugins/wayland-* ./shared/lib/qt6/plugins || true
ldd ./shared/lib/qt6/plugins/*/* 2>/dev/null \
| awk -F"[> ]" '{print $4}' | xargs -I {} cp -nv {} ./shared/lib || true

# Bundle pipewire and alsa
cp -vr /usr/lib/x86_64-linux-gnu/pipewire-0.3 ./shared/lib
cp -vr /usr/lib/x86_64-linux-gnu/spa-0.2 ./shared/lib
cp -vr /usr/lib/x86_64-linux-gnu/alsa-lib ./shared/lib
cp -vr /usr/lib/pipewire-0.3 ./shared/lib
cp -vr /usr/lib/spa-0.2 ./shared/lib
cp -vr /usr/lib/alsa-lib ./shared/lib

# add gpu libs
cp -vr /usr/lib/x86_64-linux-gnu/libGLX* ./shared/lib || true
cp -vr /usr/lib/x86_64-linux-gnu/libEGL* ./shared/lib || true
cp -vr /usr/lib/x86_64-linux-gnu/dri ./shared/lib
cp -vn /usr/lib/x86_64-linux-gnu/libvulkan* ./shared/lib
cp -vr /usr/lib/libGLX* ./shared/lib || true
cp -vr /usr/lib/libEGL* ./shared/lib || true
cp -vr /usr/lib/dri ./shared/lib
cp -vn /usr/lib/libvulkan* ./shared/lib
ldd ./shared/lib/dri/* \
./shared/lib/libvulkan* \
./shared/lib/libEGL* \
Expand All @@ -71,10 +71,6 @@ cp -vr /usr/share/glvnd ./share
cp -vr /usr/share/vulkan/icd.d ./share/vulkan
sed -i 's|/usr/lib||g;s|/.*-linux-gnu||g;s|"/|"|g' ./share/vulkan/icd.d/*

if [ -f ./shared/lib/libLLVM-17.so.1 ]; then
ln -s ./libLLVM-17.so.1 ./shared/lib/libLLVM.so.18.1 || true
fi

# Prepare sharun
ln ./sharun ./AppRun
./sharun -g
Expand Down

0 comments on commit bcc5455

Please sign in to comment.