From 85ab1b823d118a5235b11870a5e46f112a8e52bb Mon Sep 17 00:00:00 2001 From: Minjae Song Date: Wed, 5 Jun 2019 16:05:33 +0900 Subject: [PATCH] mod metadata: changed versioning scheme --- assets/mods/basegame/metadata.properties | 28 ++++++++++-------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/assets/mods/basegame/metadata.properties b/assets/mods/basegame/metadata.properties index 2bf384358..a4bf82e02 100644 --- a/assets/mods/basegame/metadata.properties +++ b/assets/mods/basegame/metadata.properties @@ -14,29 +14,25 @@ entrypoint=net.torvald.terrarum.modulebasegame.EntryPoint # Release date in YYYY-MM-DD releasedate=2017-07-14 -# The version, must be ^[0-9]+(\.[0-9]+)*$ in regex -# e.g. 0.1 0.1.1347 -# e.g. 1 1.0.58385.02 -# e.g. 26558 0.0.0.0.0.1 +# The version, must follow Semver 2.0.0 scheme (https://semver.org/) version=0.2.0 # External JARs the module might use, separate multiple by semicolon (;) libraries= # Modules that must be pre-installed, separate multiple by semicolon (;) -# Dependency syntax: "module name space allowed 444.44+" -# Version number: + means equal or higher, ! means this exact number, - denotes interval, * is wildcard -# the default is equal or lower -# e.g. 1.4+ would allow 1.4, 0.6, 1.13, 1.42, 1.4.0, 1.4.4456 -# e.g. 10+.2 would allow 10.2, 10.1, 11.0 but would not allow any integer version (v10.0 != v10) -# e.g. 10.4! would allow 10.4, 9.4, 8.4, 7.4 -# e.g. 10.3-11.4 would allow 10.3, 10.7, 10.12676, 11.0, 11.4 but not integer v11, 10.3.12 etc. -# e.g. 13!.5 would allow 13.0, 13.1, 13.2, 13.3, 13.4 and 13.5 -# e.g. * would allow any version possible -# e.g. *.* would allow any version on that scheme -# e.g. *! would only allow all integer version +# Dependency syntax: "module's identification name (aka folder name) spaces allowed versionnumber" +# Versionnumber: + means equal or higher, ! means this exact number, - denotes interval, * is wildcard +# the default is equal or lower. When fields are omitted (e.g. 3, 1.65), those fields will be ignored +# e.g. 1.4+ would allow any future versions including 1.4.0; PATCH versions are ignored: 1.6.0, 1.13.0, 1.42.0, 1.4.0, 1.4.4456 +# e.g. 4.2.25 would allow any future versions including 4.2.25; any older patches such as 4.2.17 will be disallowd +# e.g. 10.4! is same as 10.4; would allow any PATCH versions as the numbers is ignored +# e.g. 10.3-11.4 would allow any versions between and including stated versions; PATCH versions are ignored: 10.3.0, 10.7.0, 10.3.676, 11.0.0, 11.4.9999 +# e.g. 10.3.2-10.4.5 would allow any versions between and including stated versions; PATCH versions are checked +# e.g. 3!.1+ would allow any future MINOR versions including 3.1; PATH versions are ignored: 3.1, 3.4.22, 3.6, 3.1415926 +# e.g. * would allow any version possible, as it won't check MINOR and PATCH versions # NOTE: it's your responsibility that your mod's version scheme would not be a total mess! # real world examples: -# BaseGame 1.0+; CommandLineRenewed 2!.0+; Basegame 1!.0+; ScreenRecorder *; MyScrRecHack 1.* +# basegame 1.0.0+; command line refresh 2!.+; my_little_hack 0.* # Can you decode them? This is for hypothetical screen recorder mod. dependency= \ No newline at end of file