builder upgrade

This commit is contained in:
kepler155c@gmail.com
2017-04-01 19:21:49 -04:00
parent 74e93068fb
commit 72bd16502b
14 changed files with 977 additions and 160 deletions

View File

@@ -90,6 +90,16 @@ function os.isPocket()
return not not pocket
end
function os.getVersion()
if _CC_VERSION then
return tonumber(_CC_VERSION)
end
if _HOST then
return tonumber(_HOST:gmatch('[%d]+%.?[%d][%d]', '%1')())
end
return 1.7
end
function os.registerApp(entry)
local apps = { }
Config.load('apps', apps)