Meta

Treatments group for manipulating the meta.xml file.

Available Treatments

These are the treatments currently provided by the "Meta" treatment group:

TreatmentArgumentsDescription

meta.remove_declaration

Removes the unicode declaration / first line of the meta.xml file. Used for fixing some broken meta.xmls. Adds a valid declaration instead.

meta.remove_comments

Removes comments. Helpful for when comments contain double-hyphens, which breaks xml parsing and violates the xml specification.

meta.set

["key", "value"]

Sets a key in the meta.xml to the given value. Can be used to override things like app name, author name and description.

meta.init

Solely intended for when a meta.xml is not provided by the author. Should not be used in place of "fixing" a broken file using other treatments. Creates a new meta.xml file, and pre-populates it with: - "name" as specified in the information section. - "coder" as specified in the information section. - "version" as specified in the information section. - "short_description": "No description provided."

Example:

{
    ...
    "treatments": [
        {
            "treatment": "meta.set", "arguments": ["name", "Newo Zero"]
        },
    ],
    ...
}

Last updated