This repository has been archived by the owner on Dec 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
org.tlauncher.TLauncher.yaml
102 lines (93 loc) · 2.94 KB
/
org.tlauncher.TLauncher.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
app-id: org.tlauncher.TLauncher
command: tlauncher
base: io.atom.electron.BaseApp
base-version: '19.08'
runtime: org.freedesktop.Platform
runtime-version: '19.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.openjdk11
tags:
- proprietary
finish-args:
# Launcher/game files
- --persist=.tlauncher
- --persist=.minecraft
# X11 + XShm
- --socket=x11
- --share=ipc
# OpenGL
- --device=dri
# Sound/music
- --socket=pulseaudio
# Download game files/multiplayer
- --share=network
# Java
- --env=PATH=/usr/bin:/app/bin:/app/jre/bin
- --env=JAVA_HOME=/app/jre
- --env=JAVA=/app/jre/bin/java
build-options:
append-path: /usr/lib/sdk/openjdk11/bin
modules:
# Needed by Minecraft 1.8.2 and up
- name: xrandr
sources:
- type: archive
url: https://www.x.org/archive/individual/app/xrandr-1.5.1.tar.gz
sha256: 7b99edb7970a1365eaf5bcaf552144e4dfc3ccf510c4abc08569849929fb366e
cleanup:
- /share/man
- name: gamemode
buildsystem: meson
config-opts:
- -Dwith-systemd=false
- -Dwith-daemon=false
- -Dwith-examples=false
sources:
- type: archive
url: https://github.com/FeralInteractive/gamemode/archive/1.5.1.tar.gz
sha256: f5b1aae7d8f2d9da5dae828431b6df7757b31de91b5298372e9247f740f204d0
size: 72555
cleanup:
- /include
- name: openjdk
buildsystem: simple
build-commands:
- /usr/lib/sdk/openjdk11/install.sh
- name: tlauncher
buildsystem: simple
build-commands:
- install -Dm755 -t /app/bin/ apply_extra
- install -Dm755 -t /app/bin/ tlauncher
- install -Dm644 -t /app/share/applications/ org.tlauncher.TLauncher.desktop
- install -Dm644 -t /app/share/icons/hicolor/512x512/apps/ org.tlauncher.TLauncher.png
- install -Dm644 -t /app/share/appdata/ org.tlauncher.TLauncher.metainfo.xml
sources:
- type: extra-data
filename: TLauncher.zip
url: https://dl2.tlauncher.org/f.php?f=files%2FTLauncher-2.72.zip
sha256: 974583935cc1ec22fa3fa0fc12d90c3963aabe296cc4af03b219379612d28a62
size: 4069832
x-checker-data:
type: rotating-url
url: https://tlauncher.org/jar
pattern: https://dl2.tlauncher.org/f.php?f=files%2FTLauncher-([0-9.]+).zip
- type: script
dest-filename: apply_extra
commands:
- unzip TLauncher.zip
- rm -f TLauncher.zip
- mv TLauncher*.jar TLauncher.jar
- type: script
commands:
- '# Use gamemode if available'
- GAMEMODEAUTO="libgamemodeauto.so.0"
- export LD_PRELOAD="${GAMEMODEAUTO}${LD_PRELOAD:+:$LD_PRELOAD}"
- exec java -jar /app/extra/TLauncher.jar "$@"
dest-filename: tlauncher
- type: file
path: org.tlauncher.TLauncher.desktop
- type: file
path: org.tlauncher.TLauncher.png
- type: file
path: org.tlauncher.TLauncher.metainfo.xml