Vankata453 6496de2a55 Remove "Toufix's Levels" from latest indexes per creator's request | 3 月之前 | |
---|---|---|
langpacks | 2 年之前 | |
repository | 1 年之前 | |
src @ 4eda00d61f | 8 年之前 | |
translations @ d2d9dfcef8 | 8 年之前 | |
unused | 2 年之前 | |
.gitignore | 9 年之前 | |
.gitmodules | 8 年之前 | |
README.md | 2 年之前 | |
extract_strings.py | 9 年之前 | |
index-0_3_5.nfo | 2 年之前 | |
index-0_4_0.nfo | 2 年之前 | |
index-0_5.nfo | 2 年之前 | |
index-0_6.nfo | 3 月之前 | |
index-0_7.nfo | 3 月之前 | |
make_lang_addon.sh | 9 年之前 | |
makepot.sh | 8 年之前 | |
ver_info.nfo | 2 年之前 |
To package your addon, you can use the "Package Add-on" option in the main level editor menu.
Additional information for addon .nfo files
Addon .nfo files look like this:
(supertux-addoninfo
(id "octo-levels")
(version 1)
(type "worldmap")
(title "Octo's Levels")
(author "Octo")
(license "GPL 2+ / CC-by-sa 3.0")
)
The id
is a identifier for this addon, it has to be unique across
all addons, as it is used to compare the addons with new ones from
other sources to find updates. It is recomment to use something like
"{author}-{title}". The id
must be all lowercase and only contain
characters of the set "[a-z][0-9]-", underscore is not allowed as it
is used for the version number.
The version
number is a simple integer, it should be increased each
time the addon is changed.
The type
gives an indication of what is contained within the addon,
valid values are "worldmap", "world", "levelset". At the moment this
is only a description for the user and doesn't have any impact on how
the addon is handled.
The .nfo file itself needs to be stored in the top-level directory of
the addon and should be named by the unique id of the addon, i.e.
/octo-levels.nfo
in this example.
To update an addon in the repository, you would need to submit a pull request. The pull request should contain two commits:
repository/
directory with a new one, which contains your changes.index.nfo
for the latest SuperTux version, by adding/modifying the entry for your addon. This will allow it to be downloaded from the in-game addon manager.An addon data entry looks like this:
(supertux-addoninfo (id "addon-id") (version addon-version) (type addon-type) (title "addon-title") (author "addon-author") (license "addon-license") (url "https://raw.githubusercontent.com/SuperTux/addons/addon-commit-hash/repository/addon-file-name") (md5 "addon-md5-checksum") )
repository/
directory. This is important to include, because it allows the current SuperTux release to always get its versions of all addons for backwards compatibility..nfo
files also apply here.