Skip to content

Commit

Permalink
add openjdk21 + cleanup
Browse files Browse the repository at this point in the history
Java 21 is required for MC >= 1.20.5
  • Loading branch information
zocker-160 committed May 17, 2024
1 parent 62b3e7d commit a3c15b9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions flatpak/org.fn2006.PollyMC.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ runtime: org.kde.Platform
runtime-version: "5.15-23.08"
sdk: org.kde.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.openjdk17
- org.freedesktop.Sdk.Extension.openjdk8
- org.freedesktop.Sdk.Extension.openjdk17
- org.freedesktop.Sdk.Extension.openjdk21
add-extensions:
org.freedesktop.Platform.VulkanLayer.gamescope:
version: "23.08"
Expand All @@ -20,7 +21,7 @@ add-extensions:
add-ld-path: lib
directory: utils/mangohud

command: pollymc
command: pollyrun
finish-args:
- --share=ipc
- --socket=wayland
Expand Down Expand Up @@ -64,6 +65,8 @@ modules:
buildsystem: simple
build-commands:
- mkdir -p /app/jdk/
- /usr/lib/sdk/openjdk21/install.sh
- mv /app/jre /app/jdk/21
- /usr/lib/sdk/openjdk17/install.sh
- mv /app/jre /app/jdk/17
- /usr/lib/sdk/openjdk8/install.sh
Expand Down Expand Up @@ -155,14 +158,13 @@ modules:
- name: enhance
buildsystem: simple
build-commands:
- install -Dm755 prime-run /app/bin/prime-run
- mv /app/bin/pollymc /app/bin/pollyrun
- install -Dm755 pollymc /app/bin/pollymc
- install -Dm755 prime-run -t /app/bin
- install -Dm755 pollyrun -t /app/bin
sources:
- type: file
path: prime-run
- type: file
path: pollymc
path: pollyrun

- name: extensions
buildsystem: simple
Expand Down
2 changes: 1 addition & 1 deletion flatpak/pollymc → flatpak/pollyrun
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ for i in {0..9}; do
test -S "$XDG_RUNTIME_DIR"/discord-ipc-"$i" || ln -sf {app/com.discordapp.Discord,"$XDG_RUNTIME_DIR"}/discord-ipc-"$i";
done

exec /app/bin/pollyrun "$@"
exec /app/bin/pollymc "$@"

0 comments on commit a3c15b9

Please sign in to comment.