Browse Source

update version.rc.template to actually work

master
Ivan Holmes 5 years ago
parent
commit
a2b173b2b6
  1. 15
      test.py
  2. 4
      version.rc.template

15
test.py

@ -1,15 +0,0 @@
import os
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
from chordsheet.document import Document, Style
from chordsheet.render import Renderer
pdfmetrics.registerFont(TTFont('FreeSans', os.path.join('fonts', 'FreeSans.ttf')))
doc = Document.newFromXML('examples/test.xml')
style = Style(unitWidth=10)
ren = Renderer(doc, style)
ren.savePDF('/Users/ivan/Desktop/test.pdf')

4
version.rc.template

@ -31,12 +31,12 @@ StringFileInfo(
u'040904B0', u'040904B0',
[StringStruct(u'CompanyName', u'Ivan Holmes'), [StringStruct(u'CompanyName', u'Ivan Holmes'),
StringStruct(u'FileDescription', u'%APPNAME%'), StringStruct(u'FileDescription', u'%APPNAME%'),
StringStruct(u'FileVersion', %VERSION%),
StringStruct(u'FileVersion', u'%VERSION%'),
StringStruct(u'InternalName', u'%APPNAME%'), StringStruct(u'InternalName', u'%APPNAME%'),
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'%APPNAME%'), StringStruct(u'ProductName', u'%APPNAME%'),
StringStruct(u'ProductVersion', %VERSION%)])
StringStruct(u'ProductVersion', u'%VERSION%')])
]), ]),
VarFileInfo([VarStruct(u'Translation', [1033, 1200])]) VarFileInfo([VarStruct(u'Translation', [1033, 1200])])
] ]
Loading…
Cancel
Save