2019-03-31 09:05:33 -04:00
|
|
|
-- LUALOCALS < ---------------------------------------------------------
|
|
|
|
local dofile
|
|
|
|
= dofile
|
|
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
|
2020-03-28 06:48:57 -04:00
|
|
|
-- luacheck: push
|
2020-03-28 08:53:35 -04:00
|
|
|
-- luacheck: globals config readtext readbinary
|
2020-03-28 06:48:57 -04:00
|
|
|
|
2020-03-28 08:53:35 -04:00
|
|
|
readtext = readtext or function() end
|
|
|
|
readbinary = readbinary or function() end
|
2020-03-28 06:48:57 -04:00
|
|
|
|
2021-02-28 08:15:15 -05:00
|
|
|
local alpha = config and config.branch == "dev"
|
|
|
|
|
2021-07-22 08:07:31 -04:00
|
|
|
local tags = {
|
|
|
|
"building",
|
|
|
|
"crafting",
|
2021-07-22 22:00:47 -04:00
|
|
|
"education",
|
2021-07-22 08:07:31 -04:00
|
|
|
"environment",
|
|
|
|
"inventory",
|
|
|
|
"oneofakind__original",
|
|
|
|
"player_effects",
|
|
|
|
"puzzle",
|
|
|
|
"pve",
|
|
|
|
"technology"
|
|
|
|
}
|
|
|
|
|
2022-10-31 08:02:44 -04:00
|
|
|
local screenshots = {readbinary(alpha and '.cdb-alpha.jpg' or '.cdb-release.jpg')}
|
2021-07-23 23:56:26 -04:00
|
|
|
for i = 1, 5 do
|
|
|
|
screenshots[#screenshots + 1] = readbinary('.cdb-screen' .. i .. '.jpg')
|
|
|
|
end
|
|
|
|
|
2022-04-22 07:29:54 -04:00
|
|
|
local version = dofile("./mods/nc_api/version.lua")
|
|
|
|
local pkgmeta = dofile("./mods/nc_api/pkgmeta.lua")
|
|
|
|
|
2019-03-31 09:05:33 -04:00
|
|
|
return {
|
2020-05-18 10:54:50 -04:00
|
|
|
pkg = alpha and "nodecore_alpha" or "nodecore",
|
2022-04-22 07:29:54 -04:00
|
|
|
version = version,
|
2021-02-28 08:18:09 -05:00
|
|
|
type = "game",
|
2022-04-26 07:05:44 -04:00
|
|
|
title = pkgmeta.title(alpha),
|
2022-04-22 07:29:54 -04:00
|
|
|
short_description = pkgmeta.desc(alpha),
|
2021-12-21 20:47:11 -05:00
|
|
|
dev_state = alpha and "BETA" or "ACTIVELY_DEVELOPED",
|
2021-07-22 08:07:31 -04:00
|
|
|
tags = tags,
|
2021-02-28 08:15:15 -05:00
|
|
|
content_warnings = {},
|
|
|
|
license = "MIT",
|
|
|
|
media_license = "MIT",
|
2021-07-20 21:15:12 -04:00
|
|
|
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'),
|
2021-02-28 08:15:15 -05:00
|
|
|
repo = "https://gitlab.com/sztest/nodecore",
|
|
|
|
website = "https://nodecore.mine.nu",
|
|
|
|
issue_tracker = "https://discord.gg/NNYeF6f",
|
2023-03-28 22:58:25 -04:00
|
|
|
donate_url = "https://liberapay.com/NodeCore",
|
2021-02-28 08:15:15 -05:00
|
|
|
forums = 24857,
|
|
|
|
maintainers = {"Warr1024"},
|
2021-07-23 23:56:26 -04:00
|
|
|
screenshots = screenshots
|
2019-03-31 09:05:33 -04:00
|
|
|
}
|
2020-03-28 06:48:57 -04:00
|
|
|
|
|
|
|
-- luacheck: pop
|