From b6ab0ba4a0505043d9999399821a3152f6b252c2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 18 Feb 2009 15:36:19 -0800 Subject: [PATCH] calibre executables in windows now have the proper version information set --- installer/windows/freeze.py | 35 ++++------------------------------- 1 file changed, 4 insertions(+), 31 deletions(-) diff --git a/installer/windows/freeze.py b/installer/windows/freeze.py index 501a24eb26..fce5a2c923 100644 --- a/installer/windows/freeze.py +++ b/installer/windows/freeze.py @@ -28,33 +28,12 @@ for icon in ICONS: raise Exception('No icon at '+icon) VERSION = re.sub('[a-z]\d+', '', VERSION) +WINVER = VERSION+'.0' PY2EXE_DIR = os.path.join(BASE_DIR, 'build','py2exe') class BuildEXE(py2exe.build_exe.py2exe): - manifest_resource_id = 0 - - MANIFEST_TEMPLATE = ''' - - - - Ebook management application - - - - - - - - - -''' + def run(self): py2exe.build_exe.py2exe.run(self) print 'Adding plugins...' @@ -128,19 +107,13 @@ class BuildEXE(py2exe.build_exe.py2exe): for f in glob.glob(os.path.join(VC90, '*')): shutil.copyfile(f, os.path.join(PY2EXE_DIR, os.path.basename(f))) - - @classmethod - def manifest(cls, prog): - cls.manifest_resource_id += 1 - return (24, cls.manifest_resource_id, - cls.MANIFEST_TEMPLATE % dict(prog=prog, version=(VERSION+'.0'))) - + def exe_factory(dest_base, script, icon_resources=None): exe = { 'dest_base' : dest_base, 'script' : script, 'name' : dest_base, - 'version' : VERSION+'.0', + 'version' : WINVER, 'description' : 'calibre - E-book library management', 'author' : 'Kovid Goyal', 'copyright' : '(c) Kovid Goyal, 2008',