Add viewer and editor icons to windows installer

This commit is contained in:
Kovid Goyal 2015-02-16 20:17:13 +05:30
parent 96abc72ed1
commit 5cb5a698ee
2 changed files with 24 additions and 22 deletions

View File

@ -55,6 +55,10 @@
<Directory Id="DesktopFolder" Name="Desktop"/>
</Directory>
<Icon Id="main_icon" SourceFile="{main_icon}"/>
<Icon Id="viewer_icon" SourceFile="{viewer_icon}"/>
<Icon Id="editor_icon" SourceFile="{editor_icon}"/>
<DirectoryRef Id="APPLICATIONFOLDER">
{app_components}
<Component Id="AddToPath" Guid="*">
@ -132,7 +136,6 @@
</Feature>
<!-- Add icon to entry in Add/Remove programs -->
<Icon Id="main_icon" SourceFile="{main_icon}"/>
<Property Id="ARPPRODUCTICON" Value="main_icon" />
<Property Id="ARPURLINFOABOUT" Value="http://calibre-ebook.com" />
<Property Id='ARPHELPLINK' Value="http://calibre-ebook.com/help" />

View File

@ -47,13 +47,14 @@ class WixMixIn:
app_components=components,
exe_map=self.smap,
main_icon=self.j(self.src_root, 'icons', 'library.ico'),
viewer_icon=self.j(self.src_root, 'icons', 'viewer.ico'),
editor_icon=self.j(self.src_root, 'icons', 'ebook-edit.ico'),
web_icon=self.j(self.src_root, 'icons', 'web.ico'),
)
template = open(self.j(self.d(__file__), 'en-us.xml'),
'rb').read()
enus = template.format(app=__appname__)
enusf = self.j(self.installer_dir, 'en-us.wxl')
wxsf = self.j(self.installer_dir, __appname__+'.wxs')
with open(wxsf, 'wb') as f:
@ -153,5 +154,3 @@ class WixMixIn:
self.smap[x] = 'file_%d'%self.file_id_map[self.a(self.j(self.base, x+'.exe'))]
return '\t\t\t\t'+'\n\t\t\t\t'.join(components)