-- 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 = {readbinary(alpha and '.cdb-alpha.jpg' or '.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", donate_url = "https://liberapay.com/NodeCore", forums = 24857, maintainers = {"Warr1024"}, screenshots = screenshots } -- luacheck: pop