mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Moved to semver
This commit is contained in:
parent
97558e5828
commit
680cb1885e
@ -154,9 +154,10 @@ class Helpers:
|
|||||||
|
|
||||||
version_data = self.get_version()
|
version_data = self.get_version()
|
||||||
# set some defaults if we don't get version_data from our helper
|
# set some defaults if we don't get version_data from our helper
|
||||||
version = "{}.{}.{}".format(version_data.get('major', '?'),
|
version = "{}.{}.{}-{}".format(version_data.get('major', '?'),
|
||||||
version_data.get('minor', '?'),
|
version_data.get('minor', '?'),
|
||||||
version_data.get('sub', '?'))
|
version_data.get('sub', '?'),
|
||||||
|
version_data.get('patch', '?'))
|
||||||
return str(version)
|
return str(version)
|
||||||
|
|
||||||
def do_exit(self):
|
def do_exit(self):
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"major": 4,
|
"major": 4,
|
||||||
"minor": 0,
|
"minor": 0,
|
||||||
"sub": "Alpha 2+noshell"
|
"sub": 0,
|
||||||
|
"meta": "alpha.2"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user