nodecore-cd2025/.cdbrelease.lua
2022-04-26 07:05:44 -04:00

60 lines
1.5 KiB
Lua

-- LUALOCALS < ---------------------------------------------------------
local dofile
= dofile
-- LUALOCALS > ---------------------------------------------------------
-- luacheck: push
-- luacheck: globals config readtext readbinary
readtext = readtext or function() end
readbinary = readbinary or function() end
local alpha = config and config.branch == "dev"
local tags = {
"building",
"crafting",
"education",
"environment",
"inventory",
"oneofakind__original",
"player_effects",
"puzzle",
"pve",
"technology"
}
local screenshots = {}
if alpha then screenshots[1] = readbinary('.cdb-alpha.jpg') end
screenshots[#screenshots + 1] = readbinary('.cdb-release.jpg')
for i = 1, 5 do
screenshots[#screenshots + 1] = readbinary('.cdb-screen' .. i .. '.jpg')
end
local version = dofile("./mods/nc_api/version.lua")
local pkgmeta = dofile("./mods/nc_api/pkgmeta.lua")
return {
pkg = alpha and "nodecore_alpha" or "nodecore",
version = version,
type = "game",
title = pkgmeta.title(alpha),
short_description = pkgmeta.desc(alpha),
dev_state = alpha and "BETA" or "ACTIVELY_DEVELOPED",
tags = tags,
content_warnings = {},
license = "MIT",
media_license = "MIT",
long_description = readtext('.cdb-header.md') .. "\n\n"
.. (alpha and readtext('.cdb-alpha.md') or readtext('.cdb-release.md'))
.. "\n\n" .. readtext('.cdb-footer.md'),
repo = "https://gitlab.com/sztest/nodecore",
website = "https://nodecore.mine.nu",
issue_tracker = "https://discord.gg/NNYeF6f",
forums = 24857,
maintainers = {"Warr1024"},
screenshots = screenshots
}
-- luacheck: pop