forked from rojo-rbx/rojo
Support semver metadata in plugin version
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
return {
|
return {
|
||||||
codename = "Epiphany",
|
codename = "Epiphany",
|
||||||
version = {0, 5, 0},
|
version = {0, 5, 0, "-alpha.0"},
|
||||||
expectedServerVersionString = "0.5.0 or newer",
|
expectedServerVersionString = "0.5.0 or newer",
|
||||||
protocolVersion = 2,
|
protocolVersion = 2,
|
||||||
defaultHost = "localhost",
|
defaultHost = "localhost",
|
||||||
|
|||||||
@@ -34,7 +34,13 @@ function Version.compare(a, b)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Version.display(version)
|
function Version.display(version)
|
||||||
return table.concat(version, ".")
|
local output = ("%d.%d.%d"):format(version[1], version[2], version[3])
|
||||||
|
|
||||||
|
if version[4] ~= nil then
|
||||||
|
output = output .. version[4]
|
||||||
|
end
|
||||||
|
|
||||||
|
return output
|
||||||
end
|
end
|
||||||
|
|
||||||
return Version
|
return Version
|
||||||
Reference in New Issue
Block a user