51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
id: me.theentropyshard.teslauncher
|
|
runtime: org.freedesktop.Platform
|
|
runtime-version: '24.08'
|
|
sdk: org.freedesktop.Sdk
|
|
command: /app/tesl.sh
|
|
|
|
build-options:
|
|
build-args:
|
|
# sorry, but i dont want to google how to vendor gradle deps
|
|
- --share=network
|
|
|
|
finish-args:
|
|
- --share=ipc
|
|
- --socket=x11
|
|
- --device=dri
|
|
- --socket=pulseaudio
|
|
- --share=network
|
|
|
|
modules:
|
|
# 1.
|
|
# download OpenJ9 JDK, build TESLauncher, install JAR,
|
|
# generate JRE with jlink and install it
|
|
- name: build
|
|
buildsystem: simple
|
|
sources:
|
|
- type: archive
|
|
strip-components: 0
|
|
url: https://pkg.dc09.ru/openj9/jdk.tar.zst
|
|
sha256: 4b80961f6b89bac2ced31da10c09b985fa88aed0ff4902bf293693c168cc30f1
|
|
dest: jdk
|
|
- type: git
|
|
url: https://github.com/TESLauncher/TESLauncher.git
|
|
branch: master
|
|
dest: src
|
|
- type: file
|
|
path: build.sh
|
|
build-commands:
|
|
- 'chmod +x build.sh && ./build.sh'
|
|
|
|
# 2.
|
|
# install a script and a dot-desktop
|
|
- name: 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 -t /app/share/applications/ me.theentropyshard.teslauncher.desktop'
|