Add prismlauncher

This commit is contained in:
Alex D. 2024-10-20 13:00:59 +00:00
parent 0383433a85
commit 8584ff15d2
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
4 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,19 @@
# Main image
FROM localhost/caskd/archlinux/graphical:latest
USER yaybuild
RUN --network=host yay -Sy --noconfirm \
jdk21-openjdk \
jdk17-openjdk \
jdk8-openjdk \
prismlauncher
USER root
RUN userdel yaybuild
RUN rm -rfv /home/yaybuild
WORKDIR /home/user
ADD start.sh .
USER user
CMD ["./start.sh"]

View File

@ -0,0 +1,16 @@
#!/bin/sh
podman create \
--replace \
--name prismlauncher \
--read-only \
--userns=keep-id:uid=10000 \
--network=host \
-e DISPLAY \
-v '/sys:/sys' \
-v '/dev/dri:/dev/dri' \
-v '/dev/snd:/dev/snd' \
-v '/run/pulse:/run/pulse' \
-v '/tmp/.X11-unix:/tmp/.X11-unix' \
-v '/etc/resolv.conf:/etc/resolv.conf:ro' \
-v "$(realpath ~/.local/share/PrismLauncher)"':/home/user/.local/share/PrismLauncher' \
localhost/caskd/archlinux/prismlauncher:latest

View File

@ -0,0 +1,4 @@
#!/bin/sh
# For some reason primslauncher crashes without dbus
export $(dbus-launch)
exec prismlauncher

View File

@ -54,6 +54,9 @@ localhost/caskd/archlinux/terraria/${BUILD_ID_OUT}: \
#localhost/caskd/archlinux/prismlauncher/${BUILD_ID_OUT}: \
# $(GRAPHICALDEPS)
localhost/caskd/archlinux/prismlauncher/${BUILD_ID_OUT}: \
$(GRAPHICALDEPS)
localhost/caskd/archlinux/osu-lazer/${BUILD_ID_OUT}: \
$(GRAPHICALDEPS)