Skip to content

Commit 1eab1e0

Browse files
committed
cleanup
1 parent 86e1e3b commit 1eab1e0

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

main.lua

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ ROOT = fs.path(util.expandPath(rootPath))
3434
LOGPATH = LOGPATH and util.expandPath(LOGPATH) or (ROOT:string() .. '/log')
3535
METAPATH = METAPATH and util.expandPath(METAPATH) or (ROOT:string() .. '/meta')
3636

37-
if _G['VERSION'] then
38-
print(version.getVersion())
39-
return
40-
end
41-
4237
---@diagnostic disable-next-line: deprecated
4338
debug.setcstacklimit(200)
4439
--collectgarbage('generational', 5, 25)
@@ -53,6 +48,8 @@ log.debug('LOGPATH:', LOGPATH)
5348
log.debug('METAPATH:', METAPATH)
5449
log.debug('VERSION:', version.getVersion())
5550

51+
require 'ci'
52+
5653
require 'tracy'
5754

5855
xpcall(dofile, log.debug, (ROOT / 'debugger.lua'):string())

script/ci/init.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
if _G['VERSION'] then
2+
require 'ci.version'
3+
os.exit(0, true)
4+
end

script/ci/version.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
local version = require 'version'
2+
print(version.getVersion())

0 commit comments

Comments
 (0)