{% macro version_info(settings) %}
VSVersionInfo(
    ffi=FixedFileInfo(date=(0, 0),
                      filevers=(${vers}),
                      fileType=0x1,
                      flags=0x0,
                      mask=0x3f,
                      OS=0x4,
                      prodvers=(${vers}),
                      subtype=0x0),
    kids=[
        StringFileInfo([
            StringTable('040904B0', [
                StringStruct('CompanyName', '{{ settings.github_username }}'),
                StringStruct(
                    'FileDescription',
                    '${script_name} from ${project_name}. - ${{ '{{' }} github.server_url }}/${{ '{{' }} github.repository }}'
                ),
                StringStruct('FileVersion', '${version}'),
                StringStruct('InternalName', '${script_name}.exe'),
                StringStruct('LegalCopyright', 'Copyright (c) ${project_name} authors.'),
                StringStruct('OriginalFilename', '${script_name}.exe'),
                StringStruct('ProductName', '${project_name}'),
                StringStruct('ProductVersion', '${version}')
            ])
        ]),
        VarFileInfo([VarStruct('Translation', [0x409, 1200, 0x809, 1252])])
    ])
{% endmacro %}
