diff --git a/version.rc b/version.rc index 79068e0..b497cf2 100644 --- a/version.rc +++ b/version.rc @@ -1,20 +1,13 @@ # 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: # http://msdn.microsoft.com/en-us/library/ms646997.aspx VSVersionInfo( ffi=FixedFileInfo( # filevers and prodvers should be always a tuple with four items: (1, 2, 3, 4) # 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 mask=0x3f, # Contains a bitmask that specifies the Boolean attributes of the file. @@ -38,12 +31,12 @@ StringFileInfo( u'040904B0', [StringStruct(u'CompanyName', u'Ivan Holmes'), StringStruct(u'FileDescription', u'Chordsheet'), - StringStruct(u'FileVersion', version), + StringStruct(u'FileVersion', 0.4.1), StringStruct(u'InternalName', u'Chordsheet'), StringStruct(u'LegalCopyright', u'Copyright (c) Ivan Holmes, 2020. Some rights reserved.'), StringStruct(u'OriginalFilename', u'chordsheet.exe'), StringStruct(u'ProductName', u'Chordsheet'), - StringStruct(u'ProductVersion', version)]) + StringStruct(u'ProductVersion', 0.4.1)]) ]), VarFileInfo([VarStruct(u'Translation', [1033, 1200])]) ]