-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
quiltutil.py
31 lines (26 loc) · 1.02 KB
/
quiltutil.py
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
from metautil import *
import jsonobject
# barebones semver-like parser
def isQuiltVerStable(ver):
s = ver.split("+")
return ("-" not in s[0])
class QuiltInstallerArguments(JsonObject):
client = ListProperty(StringProperty)
common = ListProperty(StringProperty)
server = ListProperty(StringProperty)
class QuiltInstallerLibraries(JsonObject):
client = ListProperty(MultiMCLibrary)
common = ListProperty(MultiMCLibrary)
server = ListProperty(MultiMCLibrary)
development = ListProperty(MultiMCLibrary, required=False)
class QuiltInstallerDataV1(JsonObject):
version = IntegerProperty(required=True)
libraries = ObjectProperty(QuiltInstallerLibraries, required=True)
mainClass = jsonobject.DefaultProperty()
arguments = ObjectProperty(QuiltInstallerArguments, required=False)
min_java_version = IntegerProperty(required=False)
class QuiltJarInfo(JsonObject):
releaseTime = ISOTimestampProperty()
size = IntegerProperty()
sha256 = StringProperty()
sha1 = StringProperty()