fix relations not being included in generated lua manifest
This commit is contained in:
parent
2741536e69
commit
c79d6dd8ca
|
@ -33,8 +33,41 @@ manifest = {
|
||||||
{% endfor %}},{% endif %}{% endif %}
|
{% endfor %}},{% endif %}{% endif %}
|
||||||
},{% endfor %}
|
},{% endfor %}
|
||||||
},
|
},
|
||||||
},{% endfor %}
|
},
|
||||||
},
|
relations = {
|
||||||
|
{% for rel in ver.relations %} {
|
||||||
|
id = "{{ rel.id }}",
|
||||||
|
{% if rel.file %}file = {
|
||||||
|
{% if file.artifact %}installer = "{{ file.installer }}",
|
||||||
|
artifact = "{{ file.artifact }}",
|
||||||
|
repository = "{{ file.repository }}",{% else %}{% if file.id %}id = "{{ file.id }}",{% endif %}
|
||||||
|
installer = "{{ file.installer }}",
|
||||||
|
link = "{{ file.link }}",{% if file.options %}
|
||||||
|
options = {
|
||||||
|
{% for opt in file.options %} "{{ opt }}",
|
||||||
|
{% endfor %}},{% endif %}{% endif %}
|
||||||
|
},
|
||||||
|
{% endif %}{% if rel.versions %}versions = "{{ rel.versions }}",
|
||||||
|
{% endif %}{% if rel.meta %}meta = {
|
||||||
|
name = "{{ rel.meta.name }}",
|
||||||
|
contributors = {
|
||||||
|
{% for cont in rel.meta.contributors %} {
|
||||||
|
name = "{{ cont.name }}",
|
||||||
|
roles = {% for role in cont.roles %}{
|
||||||
|
"{{ role }}",
|
||||||
|
{% endfor %}},
|
||||||
|
{% endfor %}},
|
||||||
|
{% if rel.meta.description %}description = "{{ rel.meta.description }}",
|
||||||
|
{% endif %}{% if rel.meta.icon_url %}icon_url = "{{ rel.meta.icon_url }}",
|
||||||
|
{% endif %}{% if rel.meta.website_url %}website_url = "{{ rel.meta.website_url }}",
|
||||||
|
{% endif %}},
|
||||||
|
{% endif %}type = "{{ rel.type }}",
|
||||||
|
options = {
|
||||||
|
{% for opt in rel.options %} "{{ opt }}",
|
||||||
|
{% endfor %}},
|
||||||
|
},{% endfor %}
|
||||||
|
},
|
||||||
|
},{% endfor %}
|
||||||
repositories = {
|
repositories = {
|
||||||
{% for repo in repositories %} {
|
{% for repo in repositories %} {
|
||||||
id = "{{ repo.id }}",
|
id = "{{ repo.id }}",
|
||||||
|
|
Loading…
Reference in a new issue