Skip to content

Add metadata data for Win builds #37

Description

@ace-dent

Add metadata .rc file for building Windows binaries, e.g.

1 VERSIONINFO
FILEVERSION     4,0,0,0
PRODUCTVERSION  4,0,0,0
FILEFLAGSMASK   0x3fL
FILEFLAGS       0x0L
FILEOS          0x40004L
FILETYPE        0x1L
FILESUBTYPE     0x0L
BEGIN
  BLOCK "StringFileInfo"
  BEGIN
    BLOCK "040904b0"
    BEGIN
      VALUE "CompanyName",     "Your Name"
      VALUE "FileDescription", "PNG integrity checker"
      VALUE "FileVersion",     "4.0.0"
      VALUE "InternalName",    "pngcheck"
      VALUE "OriginalFilename","pngcheck.exe"
      VALUE "ProductName",     "pngcheck"
      VALUE "ProductVersion",  "4.0.0"
      VALUE "BuildDate",       "2025-04-05"
    END
  END
  BLOCK "VarFileInfo"
  BEGIN
    VALUE "Translation", 0x0409, 1200
  END
END

and

i686-w64-mingw32-windres pngcheck.rc -O coff -o pngcheck.res
i686-w64-mingw32-gcc -Os -s pngcheck.c pngcheck.res -o pngcheck.exe

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions