add cache and rename some files

This commit is contained in:
2026-01-15 15:41:19 +01:00
parent 7879f15726
commit b64815d9ab
4753 changed files with 931902 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
local fsu = require 'fs-utility'
local function loadVersion()
local changelog = fsu.loadFile(ROOT / 'changelog.md')
if not changelog then
return
end
local version, pos = changelog:match '%#%# (%d+%.%d+%.%d+)()'
if not version then
return
end
if not changelog:find('^[\r\n]+`', pos) then
version = version .. '-dev'
end
return version
end
local m = {}
function m.getVersion()
if not m.version then
m.version = loadVersion() or '<Unknown>'
end
return m.version
end
return m