You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.6 KiB

  1. # UTF-8
  2. #
  3. # Nasty hack to get the version number included automatically
  4. with open('_version.py', 'r') as versinfo:
  5. exec(versinfo.read()
  6. versNum = [int(x) for x in version.split(".")]
  7. # For more details about fixed file info 'ffi' see:
  8. # http://msdn.microsoft.com/en-us/library/ms646997.aspx
  9. VSVersionInfo(
  10. ffi=FixedFileInfo(
  11. # filevers and prodvers should be always a tuple with four items: (1, 2, 3, 4)
  12. # Set not needed items to zero 0.
  13. filevers=(versNum[0], versNum[1], versNum[2], 0),
  14. prodvers=(versNum[0], versNum[1], versNum[2], 0),
  15. # Contains a bitmask that specifies the valid bits 'flags'r
  16. mask=0x3f,
  17. # Contains a bitmask that specifies the Boolean attributes of the file.
  18. flags=0x0,
  19. # The operating system for which this file was designed.
  20. # 0x4 - NT and there is no need to change it.
  21. OS=0x4,
  22. # The general type of file.
  23. # 0x1 - the file is an application.
  24. fileType=0x1,
  25. # The function of the file.
  26. # 0x0 - the function is not defined for this fileType
  27. subtype=0x0,
  28. # Creation date and time stamp.
  29. date=(0, 0)
  30. ),
  31. kids=[
  32. StringFileInfo(
  33. [
  34. StringTable(
  35. u'040904B0',
  36. [StringStruct(u'CompanyName', u'Ivan Holmes'),
  37. StringStruct(u'FileDescription', u'Chordsheet'),
  38. StringStruct(u'FileVersion', version),
  39. StringStruct(u'InternalName', u'Chordsheet'),
  40. StringStruct(u'LegalCopyright', u'Copyright (c) Ivan Holmes, 2020. Some rights reserved.'),
  41. StringStruct(u'OriginalFilename', u'chordsheet.exe'),
  42. StringStruct(u'ProductName', u'Chordsheet'),
  43. StringStruct(u'ProductVersion', version)])
  44. ]),
  45. VarFileInfo([VarStruct(u'Translation', [1033, 1200])])
  46. ]
  47. )