autotrek/.cdbrelease.lua
2021-02-27 19:39:44 -05:00

31 lines
741 B
Lua

-- LUALOCALS < ---------------------------------------------------------
local math, tonumber
= math, tonumber
local math_floor
= math.floor
-- LUALOCALS > ---------------------------------------------------------
local stamp = tonumber("$Format:%at$")
if not stamp then return end
stamp = math_floor((stamp - 1540612800) / 60)
stamp = ("00000000" .. stamp):sub(-8)
-- luacheck: push
-- luacheck: globals config readtext readbinary
readtext = readtext or function() end
readbinary = readbinary or function() end
return {
user = "Warr1024",
pkg = "autotrek",
min = "5.0",
version = stamp .. "-$Format:%h$",
long_description = readtext('README.md'),
screenshots = {
readbinary('.cdb-screenshot.png')
}
}
-- luacheck: pop