2020-04-07 04:53:23 +02:00
|
|
|
#!/bin/sh -ex
|
|
|
|
|
|
|
|
|
|
cd build || exit 1
|
|
|
|
|
|
2024-09-29 04:07:27 +02:00
|
|
|
CPU_ARCH="${1:-x86_64}"
|
|
|
|
|
|
2018-07-16 03:12:43 +02:00
|
|
|
if [ "$DEPLOY_APPIMAGE" = "true" ]; then
|
2023-04-28 04:16:59 +02:00
|
|
|
DESTDIR=AppDir ninja install
|
2020-04-07 04:53:23 +02:00
|
|
|
|
2025-04-24 12:41:04 +02:00
|
|
|
sudo curl -fsSLo /usr/bin/linuxdeploy "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-$CPU_ARCH.AppImage"
|
|
|
|
|
sudo chmod a+x /usr/bin/linuxdeploy
|
|
|
|
|
sudo curl -fsSLo /usr/bin/linuxdeploy-plugin-qt "https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-$CPU_ARCH.AppImage"
|
|
|
|
|
sudo chmod a+x /usr/bin/linuxdeploy-plugin-qt
|
2024-09-29 04:07:27 +02:00
|
|
|
curl -fsSLo linuxdeploy-plugin-checkrt.sh https://github.com/darealshinji/linuxdeploy-plugin-checkrt/releases/download/continuous/linuxdeploy-plugin-checkrt.sh
|
2023-05-06 09:54:20 +02:00
|
|
|
chmod +x ./linuxdeploy-plugin-checkrt.sh
|
2018-07-16 03:12:43 +02:00
|
|
|
|
2024-04-12 07:59:18 +02:00
|
|
|
export EXTRA_PLATFORM_PLUGINS="libqwayland-egl.so;libqwayland-generic.so"
|
2024-10-01 12:20:17 +02:00
|
|
|
export EXTRA_QT_PLUGINS="svg;wayland-decoration-client;wayland-graphics-integration-client;wayland-shell-integration;waylandcompositor"
|
2024-09-30 22:01:22 +02:00
|
|
|
|
2024-10-03 19:23:56 +02:00
|
|
|
APPIMAGE_EXTRACT_AND_RUN=1 linuxdeploy --appdir AppDir --plugin qt --plugin checkrt
|
2023-04-30 03:33:49 +02:00
|
|
|
|
|
|
|
|
# Remove libwayland-client because it has platform-dependent exports and breaks other OSes
|
|
|
|
|
rm -f ./AppDir/usr/lib/libwayland-client.so*
|
|
|
|
|
|
2024-03-05 18:54:47 +01:00
|
|
|
# Remove libvulkan because it causes issues with gamescope
|
|
|
|
|
rm -f ./AppDir/usr/lib/libvulkan.so*
|
|
|
|
|
|
2023-04-30 13:12:11 +02:00
|
|
|
# Remove git directory containing local commit history file
|
|
|
|
|
rm -rf ./AppDir/usr/share/rpcs3/git
|
|
|
|
|
|
2023-04-30 03:33:49 +02:00
|
|
|
linuxdeploy --appimage-extract
|
|
|
|
|
./squashfs-root/plugins/linuxdeploy-plugin-appimage/usr/bin/appimagetool AppDir -g
|
2020-04-07 04:53:23 +02:00
|
|
|
|
2025-04-09 21:14:51 +02:00
|
|
|
mv ./*.AppImage ../RPCS3-Qt-UI.AppImage
|
2018-07-16 03:12:43 +02:00
|
|
|
fi
|