Add osVersion option
This commit is contained in:
parent
c0ac09389f
commit
df4484ba5a
@ -14,6 +14,9 @@ gamePath=$+sp$
|
||||
# Override the OS name. Choose windows, linux or macos, if the detection doesn't work right.
|
||||
osName=
|
||||
|
||||
# Override OS version
|
||||
osVersion=
|
||||
|
||||
# Override JVM architecture (x86/amd64)
|
||||
jvmArch=
|
||||
|
||||
|
@ -234,6 +234,9 @@ def main():
|
||||
lv["osName"] = platform.system().lower()
|
||||
if lv["osName"] == "darwin": lv["osName"] = "macos"
|
||||
|
||||
if lv["osVersion"] == "":
|
||||
lv["osVersion"] = platform.version()
|
||||
|
||||
if lv["jvmArch"] == "":
|
||||
if "64-Bit" in subprocess.check_output([lv["java"],"-version"]).decode("utf-8"):
|
||||
lv["jvmArch"] = "amd64"
|
||||
|
Loading…
Reference in New Issue
Block a user