commit f76f96b2dcf7b1c456e20b1043658c8f270a2aaf Author: DarkCat09 Date: Fri Mar 7 17:11:28 2025 +0400 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c04e736 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.flatpak-builder diff --git a/me.theentropyshard.teslauncher.desktop b/me.theentropyshard.teslauncher.desktop new file mode 100644 index 0000000..58317a8 --- /dev/null +++ b/me.theentropyshard.teslauncher.desktop @@ -0,0 +1,5 @@ +[Desktop Entry] +Name=TESLauncher +Exec=/app/tesl.sh +Type=Application +Categories=Game; diff --git a/me.theentropyshard.teslauncher.yml b/me.theentropyshard.teslauncher.yml new file mode 100644 index 0000000..b60e62e --- /dev/null +++ b/me.theentropyshard.teslauncher.yml @@ -0,0 +1,49 @@ +id: me.theentropyshard.teslauncher +runtime: org.freedesktop.Platform +runtime-version: '24.08' +sdk: org.freedesktop.Sdk +command: /app/tesl.sh +finish-args: + - --share=ipc + - --socket=x11 + - --device=dri + - --socket=pulseaudio + - --share=network +modules: + - name: openj9 + buildsystem: simple + sources: + - type: archive + url: https://pkg.dc09.ru/openj9/jre.tar.zst + sha256: b9e288ea41dedc3ba3090299a2c90185dbe155c33219ced67ed1a99dc4751125 + build-commands: + - './bin/java --version' + - 'install -D -t /app/lib/jvm/openj9 ./*' + - 'ln -s /app/lib/jvm/openj9/bin/java /usr/bin/java' + - name: tesl-build + buildsystem: simple + sources: + - type: archive + url: https://pkg.dc09.ru/openj9/jdk.tar.zst + sha256: 4b80961f6b89bac2ced31da10c09b985fa88aed0ff4902bf293693c168cc30f1 + dest: jdk + - type: git + url: https://git.dc09.ru/TESLauncher/TESLauncher.git + branch: master + dest: src + build-commands: + - 'export PATH="$PWD/jdk/bin:$PATH"' + - 'java --version' + - 'cd src' + - './gradlew shadowJar' + - 'find ./build/libs/ -name "TESL*.jar" -type f -exec install -D {} /app/tesl.jar \;' + - name: tesl-run + buildsystem: simple + sources: + - type: file + path: tesl.sh + - type: file + path: me.theentropyshard.teslauncher.desktop + build-commands: + - 'install -D -m 755 tesl.sh /app/tesl.sh' + - 'install -D -m 644 me.theentropyshard.teslauncher.desktop /app/share/applications/' diff --git a/tesl.sh b/tesl.sh new file mode 100644 index 0000000..595eadf --- /dev/null +++ b/tesl.sh @@ -0,0 +1,3 @@ +#!/usr/bin/sh -eu +cd "$XDG_DATA_HOME" +/app/lib/jvm/openj9/bin/java -jar /app/tesl.jar