initial commit

This commit is contained in:
DarkCat09 2025-03-07 17:11:28 +04:00
commit f76f96b2dc
Signed by: DarkCat09
GPG key ID: BD3CE9B65916CD82
4 changed files with 58 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/.flatpak-builder

View file

@ -0,0 +1,5 @@
[Desktop Entry]
Name=TESLauncher
Exec=/app/tesl.sh
Type=Application
Categories=Game;

View file

@ -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/'

3
tesl.sh Normal file
View file

@ -0,0 +1,3 @@
#!/usr/bin/sh -eu
cd "$XDG_DATA_HOME"
/app/lib/jvm/openj9/bin/java -jar /app/tesl.jar