-
Notifications
You must be signed in to change notification settings - Fork 7
/
minecraft-runtime-1.13
executable file
·76 lines (67 loc) · 1.72 KB
/
minecraft-runtime-1.13
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
#!/bin/sh
ROOT=/home/johannes/dev/lwjgl3-port
LWJGL_JLP_OVRD="${ROOT}/native-libs:${ROOT}/lwjgl3/bin/libs:/usr/local/lib:/usr/lib"
LWJGL_OVRD="${ROOT}/lwjgl3/bin/RELEASE/lwjgl/lwjgl.jar"
LWJGL_OGL_OVRD="${ROOT}/lwjgl3/bin/RELEASE/lwjgl-opengl/lwjgl-opengl.jar"
LWJGL_OAL_OVRD="${ROOT}/lwjgl3/bin/RELEASE/lwjgl-openal/lwjgl-openal.jar"
LWJGL_GLFW_OVRD="${ROOT}/lwjgl3/bin/RELEASE/lwjgl-glfw/lwjgl-glfw.jar"
LWJGL_STB_OVRD="${ROOT}/lwjgl3/bin/RELEASE/lwjgl-stb/lwjgl-stb.jar"
LWJGL_JEM_OVRD="${ROOT}/lwjgl3/bin/RELEASE/lwjgl-jemalloc/lwjgl-jemalloc.jar"
export JAVA_HOME=/usr/local/openjdk8
echo CMD IN: ${@}
build_classpath() {
echo build_classpath called with $@
local IFS=":"
for p in ${1}
do
case "${p}" in
*lwjgl-3.1.6.jar)
echo set $p = ${LWJGL_OVRD}
cp="${cp}:${LWJGL_OVRD}"
;;
*lwjgl-opengl*)
echo set $p = ${LWJGL_OGL_OVRD}
cp="${cp}:${LWJGL_OGL_OVRD}"
;;
*lwjgl-openal*)
echo set $p = ${LWJGL_OAL_OVRD}
cp="${cp}:${LWJGL_OAL_OVRD}"
;;
*lwjgl-glfw*)
echo set $p = ${LWJGL_GLFW_OVRD}
cp="${cp}:${LWJGL_GLFW_OVRD}"
;;
*lwjgl-stb*)
echo set $p = ${LWJGL_STB_OVRD}
cp="${cp}:${LWJGL_STB_OVRD}"
;;
*lwjgl-jemalloc*)
echo set $p = ${LWJGL_JEM_OVRD}
cp="${cp}:${LWJGL_JEM_OVRD}"
;;
*)
cp="${cp}:${p}"
;;
esac
done
cp=${cp#?}
}
for var in "${@}"
do
echo for var ${var}
case "${var}" in
-Djava.library*)
echo set library path
args="${args} -Djava.library.path=${LWJGL_JLP_OVRD}"
;;
*lwjgl-opengl*)
build_classpath "${var}"
args="${args} ${cp}"
;;
*)
args="${args} ${var}"
;;
esac
done
echo CMD OUT: ${args}
${JAVA_HOME}/jre/bin/java ${args}