Rebuild package metadata from template

Consolidate back into .cdbrelease.lua, and fix any
typos or field name issues for new stricter
cdbrelease option parsing.
This commit is contained in:
Aaron Suen 2021-02-28 08:15:15 -05:00
parent 205f264ae6
commit f91178f96b
2 changed files with 23 additions and 22 deletions

View File

@ -1,20 +1 @@
{
"user": "Warr1024",
"type": "game",
"tags": ["building",
"crafting",
"environment",
"inventory",
"oneofakind__original",
"player_effects",
"puzzle",
"pve",
"technology"
],
"license": "MIT",
"media_license": "MIT",
"repo": "https://gitlab.com/sztest/nodecore",
"website": "https://nodecore.mine.nu",
"issue_tracker": "https://discord.gg/NNYeF6f",
"forums": 24857
}
{}

View File

@ -6,19 +6,39 @@ local dofile
-- luacheck: push
-- luacheck: globals config readtext readbinary
local alpha = config and config.branch == "dev"
readtext = readtext or function() end
readbinary = readbinary or function() end
local alpha = config and config.branch == "dev"
return {
pkg = alpha and "nodecore_alpha" or "nodecore",
version = dofile("./mods/nc_api/version.lua"),
path = ".",
type = "mod",
title = "NodeCore" .. (alpha and " ALPHA" or ""),
short_description = (alpha
and "Experimental early-access release of NodeCore."
or "Original, immersive puzzle/adventure game with NO popup GUIs, minimal HUDs."),
tags = {
"building",
"crafting",
"environment",
"inventory",
"oneofakind__original",
"player_effects",
"puzzle",
"pve",
"technology"
},
content_warnings = {},
license = "MIT",
media_license = "MIT",
long_description = alpha and readtext('.cdb-alpha.md') or readtext('.cdb-release.md'),
repo = "https://gitlab.com/sztest/nodecore",
website = "https://nodecore.mine.nu",
issue_tracker = "https://discord.gg/NNYeF6f",
forums = 24857,
maintainers = {"Warr1024"},
screenshots = (alpha
and {readbinary('.cdb-alpha.jpg'), readbinary('.cdb-release.jpg')}
or {readbinary('.cdb-release.jpg')})