summaryrefslogtreecommitdiff
path: root/archived/projt-launcher/flatpak/org.projecttick.ProjTLauncher.yml
diff options
context:
space:
mode:
Diffstat (limited to 'archived/projt-launcher/flatpak/org.projecttick.ProjTLauncher.yml')
-rw-r--r--archived/projt-launcher/flatpak/org.projecttick.ProjTLauncher.yml82
1 files changed, 82 insertions, 0 deletions
diff --git a/archived/projt-launcher/flatpak/org.projecttick.ProjTLauncher.yml b/archived/projt-launcher/flatpak/org.projecttick.ProjTLauncher.yml
new file mode 100644
index 0000000000..4a1fd000d8
--- /dev/null
+++ b/archived/projt-launcher/flatpak/org.projecttick.ProjTLauncher.yml
@@ -0,0 +1,82 @@
+id: org.projecttick.ProjTLauncher
+runtime: org.kde.Platform
+runtime-version: '6.10'
+sdk: org.kde.Sdk
+sdk-extensions:
+ - org.freedesktop.Sdk.Extension.openjdk21
+
+command: projtlauncher
+finish-args:
+ - --share=ipc
+ - --socket=x11
+ - --socket=wayland
+ - --device=all
+ - --share=network
+ - --socket=pulseaudio
+ # for Discord RPC mods
+ - --filesystem=xdg-run/app/com.discordapp.Discord:create
+ # Mod drag&drop
+ - --filesystem=xdg-download:ro
+ # FTBApp import
+ - --filesystem=~/.ftba:ro
+ # Userspace visibility for manual hugepages configuration
+ # Required for -XX:+UseLargePages
+ - --filesystem=/sys/kernel/mm/hugepages:ro
+ # Userspace visibility for transparent hugepages configuration
+ # Required for -XX:+UseTransparentHugePages
+ - --filesystem=/sys/kernel/mm/transparent_hugepage:ro
+
+modules:
+ # Text to Speech in the game
+ - modules/flite.yml
+
+ # Required for GPU info
+ - modules/glxinfo.yml
+
+ # Required for older Minecraft versions
+ - modules/xrandr.yml
+
+ # Our patches improve native Wayland support
+ - modules/glfw.yml
+
+ # Project Tick Maintained Gamemode version needs inih
+ - modules/inih.yml
+
+ - name: projtlauncher
+ buildsystem: cmake-ninja
+ builddir: true
+ subdir: projt-launcher
+ config-opts:
+ - -DLauncher_BUILD_PLATFORM=flatpak
+ # This allows us to manage and update Java independently of this Flatpak
+ - -DLauncher_ENABLE_JAVA_DOWNLOADER=ON
+ - -DCMAKE_BUILD_TYPE=RelWithDebInfo
+ # Disable QtWebEngine
+ - -DLAUNCHER_USE_WEBENGINE=OFF
+ # Disable Chromium Embedded Framework because Flatpak builds does not support Project Tick Launcher Hub
+ - -DLAUNCHER_USE_CEF=OFF
+ # Disable Project Tick Launcher Hub
+ - -DLAUNCHER_DISABLE_HUB=ON
+ build-options:
+ env:
+ JAVA_HOME: /usr/lib/sdk/openjdk21/jvm/openjdk-21
+ JAVA_COMPILER: /usr/lib/sdk/openjdk21/jvm/openjdk-21/bin/javac
+ run-tests: true
+ sources:
+ - type: git
+ url: https://github.com/Project-Tick/Project-Tick
+ branch: main
+
+ - name: enhance
+ buildsystem: simple
+ build-commands:
+ - install -Dm755 prime-run /app/bin/prime-run
+ - mv /app/bin/projtlauncher /app/bin/projtrun
+ - install -Dm755 projtlauncher /app/bin/projtlauncher
+ sources:
+ # Script used to wrap instances and ensure they use dGPUs in hyprid configurations
+ - type: file
+ path: scripts/prime-run
+ # Sets up misc integrations with gamemode, mangohud, Discord RPC, etc.
+ - type: file
+ path: scripts/projtlauncher