|
|
@ -69,8 +69,8 @@ function _update_version(instance, version, shasum) |
|
|
|
os.vexec("git checkout %s", branch) |
|
|
|
os.vexec("git checkout %s", branch) |
|
|
|
local inserted = false |
|
|
|
local inserted = false |
|
|
|
local scriptfile = path.join(instance:scriptdir(), "xmake.lua") |
|
|
|
local scriptfile = path.join(instance:scriptdir(), "xmake.lua") |
|
|
|
if os.isfile(scriptfile) then |
|
|
|
|
|
|
|
local version_current |
|
|
|
local version_current |
|
|
|
|
|
|
|
if os.isfile(scriptfile) then |
|
|
|
io.gsub(scriptfile, "add_versions%(\"(.-)\",%s+\"(.-)\"%)", function (v, h) |
|
|
|
io.gsub(scriptfile, "add_versions%(\"(.-)\",%s+\"(.-)\"%)", function (v, h) |
|
|
|
if not version_current or semver.compare(v, version_current) > 0 then |
|
|
|
if not version_current or semver.compare(v, version_current) > 0 then |
|
|
|
version_current = v |
|
|
|
version_current = v |
|
|
|