diff --git a/{{cookiecutter.out_dir}}/macos/Runner/Info.plist b/{{cookiecutter.out_dir}}/macos/Runner/Info.plist index 7e273e2..a87e6be 100644 --- a/{{cookiecutter.out_dir}}/macos/Runner/Info.plist +++ b/{{cookiecutter.out_dir}}/macos/Runner/Info.plist @@ -28,14 +28,35 @@ MainMenu NSPrincipalClass NSApplication - - {{ k }} - - - - - - {{ v }} - + + {% macro render_dict(d) -%} + {% for key, value in d.items() -%} + {{ key }} + {% if value is string -%} + {{ value }} + {% elif value is boolean -%} + <{{ "true" if value else "false" }}/> + {% elif value is mapping -%} + + {{ render_dict(value) }} + + {% elif value is sequence -%} {# Support for lists/arrays #} + + {% for item in value -%} + {% if item is string -%} + {{ item }} + {% elif item is boolean -%} + <{{ "true" if item else "false" }}/> + {% elif item is mapping -%} + + {{ render_dict(item) }} + + {% endif -%} + {% endfor -%} + + {% endif -%} + {% endfor -%} + {% endmacro -%} + {{ render_dict(cookiecutter.options.info_plist) }} \ No newline at end of file