Skip to content

Instantly share code, notes, and snippets.

@sapier
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sapier/3b6b8327d1fefadd72cc to your computer and use it in GitHub Desktop.
Save sapier/3b6b8327d1fefadd72cc to your computer and use it in GitHub Desktop.
Suggestion for a reliable yet portable modstore
Add a modlist to minetest e.g.
https://github.com/minetest/modlist/modlist
Content is supposed to be json (... yes ... I know ... I hate it myself too ;-) ):
a simple example:
<<< FILE BEGIN >>>
{
{
"name" : "Mod1",
"type" : "github",
"url" : "https://github.com/mod1",
"validated_versions" : {
{
"tag" : "0.0.1",
"min_minetest_version" : "0.4.10",
"md5sum" : "......",
(OR "sha256" : "......",)
}
}
}
}
<<< FILE END >>>
Each mod is supposed to provide a mod description in it's repository.
This file is supposed to contain all official versions.
Example:
<<< FILE BEGIN >>>
{
"current_version" : "0.0.7",
"current_doc_version" : "0.0.3",
"versions" : [
{
"tag : "0.0.1",
"description : "Initial version of mod",
"main_screenshot : "http...",
(optional "screenshots" : [ "url1", "url2", "url3" ],
"min_minetest_version" : "0.4.6"
},
{
"tag" : "0.0.2",
"description" : "Fixed version",
"main_screenshot" : "http...",
(optional "screenshots" : [ "url1", "url2", "url3" ]
"min_minetest_version" : "0.4.6"
},
{
"tag" : "0.0.3",
"description" : "Test mod for example",
"main_screenshot" : "http...",
(optional "screenshots" : [ "url1", "url2", "url3" ]
"min_minetest_version" : "0.4.7"
},
{
"tag" : "0.0.4",
--use 0.0.3 description
"min_minetest_version" : "0.4.9"
},
{
"tag" : "0.0.5",
},
--{ "tag" : "0.0.6" } removed because of totally broken
{
"tag" : "0.0.7",
--use 0.0.3 description
"min_minetest_version" : "0.4.10"
}
]
}
<<< FILE END >>>
@asl97
Copy link

asl97 commented Aug 15, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment