Browse Source

add version.rc

master
Ivan Holmes 5 years ago
parent
commit
f22fe5c33d
  1. 15
      version.rc

15
version.rc

@ -1,20 +1,13 @@
# UTF-8 # UTF-8
# #
# Nasty hack to get the version number included automatically
with open('_version.py', 'r') as versinfo:
exec(versinfo.read()
versNum = [int(x) for x in version.split(".")]
# For more details about fixed file info 'ffi' see: # For more details about fixed file info 'ffi' see:
# http://msdn.microsoft.com/en-us/library/ms646997.aspx # http://msdn.microsoft.com/en-us/library/ms646997.aspx
VSVersionInfo( VSVersionInfo(
ffi=FixedFileInfo( ffi=FixedFileInfo(
# filevers and prodvers should be always a tuple with four items: (1, 2, 3, 4) # filevers and prodvers should be always a tuple with four items: (1, 2, 3, 4)
# Set not needed items to zero 0. # Set not needed items to zero 0.
filevers=(versNum[0], versNum[1], versNum[2], 0),
prodvers=(versNum[0], versNum[1], versNum[2], 0),
filevers=(0, 4, 1, 0),
prodvers=(0, 4, 1, 0),
# Contains a bitmask that specifies the valid bits 'flags'r # Contains a bitmask that specifies the valid bits 'flags'r
mask=0x3f, mask=0x3f,
# Contains a bitmask that specifies the Boolean attributes of the file. # Contains a bitmask that specifies the Boolean attributes of the file.
@ -38,12 +31,12 @@ StringFileInfo(
u'040904B0', u'040904B0',
[StringStruct(u'CompanyName', u'Ivan Holmes'), [StringStruct(u'CompanyName', u'Ivan Holmes'),
StringStruct(u'FileDescription', u'Chordsheet'), StringStruct(u'FileDescription', u'Chordsheet'),
StringStruct(u'FileVersion', version),
StringStruct(u'FileVersion', 0.4.1),
StringStruct(u'InternalName', u'Chordsheet'), StringStruct(u'InternalName', u'Chordsheet'),
StringStruct(u'LegalCopyright', u'Copyright (c) Ivan Holmes, 2020. Some rights reserved.'), StringStruct(u'LegalCopyright', u'Copyright (c) Ivan Holmes, 2020. Some rights reserved.'),
StringStruct(u'OriginalFilename', u'chordsheet.exe'), StringStruct(u'OriginalFilename', u'chordsheet.exe'),
StringStruct(u'ProductName', u'Chordsheet'), StringStruct(u'ProductName', u'Chordsheet'),
StringStruct(u'ProductVersion', version)])
StringStruct(u'ProductVersion', 0.4.1)])
]), ]),
VarFileInfo([VarStruct(u'Translation', [1033, 1200])]) VarFileInfo([VarStruct(u'Translation', [1033, 1200])])
] ]
Loading…
Cancel
Save