From a3c15b91aa8922867a38779982d143caafe68b17 Mon Sep 17 00:00:00 2001 From: zocker-160 Date: Fri, 17 May 2024 02:29:16 +0200 Subject: [PATCH] add openjdk21 + cleanup Java 21 is required for MC >= 1.20.5 --- flatpak/org.fn2006.PollyMC.yml | 14 ++++++++------ flatpak/{pollymc => pollyrun} | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) rename flatpak/{pollymc => pollyrun} (86%) diff --git a/flatpak/org.fn2006.PollyMC.yml b/flatpak/org.fn2006.PollyMC.yml index 37da59fae..bb90632b4 100644 --- a/flatpak/org.fn2006.PollyMC.yml +++ b/flatpak/org.fn2006.PollyMC.yml @@ -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" @@ -20,7 +21,7 @@ add-extensions: add-ld-path: lib directory: utils/mangohud -command: pollymc +command: pollyrun finish-args: - --share=ipc - --socket=wayland @@ -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 @@ -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 diff --git a/flatpak/pollymc b/flatpak/pollyrun similarity index 86% rename from flatpak/pollymc rename to flatpak/pollyrun index 589bbc643..85952113a 100644 --- a/flatpak/pollymc +++ b/flatpak/pollyrun @@ -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 "$@"