Skip to content

Commit 4ad10d9

Browse files
authored
Merge pull request #20555 from ANR2MERefork/appimage-sdl2
Use SDL2 library instead of SDL2-compat with SDL3 library.
2 parents 1418e1b + 3c6c458 commit 4ad10d9

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/appimage.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ jobs:
9494
sed -i 's/DownloadUser/#DownloadUser/g' /etc/pacman.conf
9595
9696
ARCH=$(uname -m)
97+
echo "ARCH=$ARCH" >> $GITHUB_ENV # Export ARCH to be reused on other steps
9798
if [[ "$ARCH" == "x86_64" ]]; then
9899
PKG_TYPE='x86_64.pkg.tar.zst'
99100
else
@@ -112,6 +113,7 @@ jobs:
112113
desktop-file-utils \
113114
git \
114115
cmake \
116+
ninja \
115117
clang \
116118
ccache \
117119
llvm-libs \
@@ -125,10 +127,10 @@ jobs:
125127
libc++ \
126128
libc++abi \
127129
glew \
128-
sdl2 \
129130
sdl2_ttf \
130131
python \
131132
patchelf \
133+
pipewire \
132134
pipewire-audio \
133135
pulseaudio \
134136
pulseaudio-alsa \
@@ -137,8 +139,12 @@ jobs:
137139
xorg-server-xvfb \
138140
zsync \
139141
vulkan-nouveau \
140-
vulkan-radeon
141-
142+
vulkan-radeon \
143+
vulkan-headers \
144+
alsa-lib sndio hidapi ibus jack libdecor libgl libpulse libusb \
145+
libx11 libxcursor libxext libxinerama libxkbcommon libxrandr libxrender libxss libxtst \
146+
wayland wayland-protocols
147+
142148
if [[ "$ARCH" == "x86_64" ]]; then
143149
pacman -Syu --noconfirm vulkan-intel
144150
fi
@@ -180,6 +186,17 @@ jobs:
180186
#clang --version
181187
#clang++ --version
182188
189+
# Install SDL2 from AUR
190+
sed -i 's|EUID == 0|EUID == 69|g' /usr/bin/makepkg # because the docker image is ran as root this is needed lol
191+
git clone https://aur.archlinux.org/sdl2.git
192+
pushd sdl2
193+
sed -i "s|x86_64|$ARCH|" ./PKGBUILD
194+
makepkg -f
195+
pacman --noconfirm -Rsndd sdl2-compat
196+
pacman --noconfirm -U *.pkg.tar.*
197+
popd
198+
# End of Install SDL2 from AUR
199+
183200
# Build ppsspp
184201
#./b.sh --release --no-sdl2 --no-png
185202
mkdir -p build

0 commit comments

Comments
 (0)