This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch 0.5.0.3-mswin in repository pyhoca-gui. commit ab6a7dc50a5466d65a4877cf22a11607ad400190 Author: Mike DePaulo <mikedep333@gmail.com> Date: Sat Jan 24 08:37:48 2015 -0500 Windows: Include all fonts in NSIS installer, make them optional, and install only "misc" by default. (Fixes: #108) --- debian/changelog | 4 +++ nsis_template.py | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 75 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 16143b5..d9b7526 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,10 @@ pyhoca-gui (0.5.0.3-mswin) UNRELEASED; urgency=medium [ Mike DePaulo ] * New upstream version (0.5.0.3-mswin): - Fix win32 build (missing win32gui.pyd) (Fixes: #649) + - Windows: Install VcXsrv "misc" fonts by default, and make all 4 font + groups optional: misc, 75dpi, 100dpi and others (Fixes: #108) + Note: The fact that all the fonts are included makes the installer about + 30MB larger. - Windows: Upgrade from VcXsrv-xp 1.14.3.2 to VcXsrv 1.15.2.2-xp+vc2013+x2go1 This new major version includes security fixes such as: diff --git a/nsis_template.py b/nsis_template.py index 64687ea..72326c6 100644 --- a/nsis_template.py +++ b/nsis_template.py @@ -243,8 +243,14 @@ FunctionEnd ;-------------------------------- ;-------------------------------- +;Installer Sections -; The stuff to install +;"Recommended" is the default because it is specified 1st. +InstType "Recommended" +InstType "Full" +InstType "Minimal" + +; The application and all its required dependencies Section "{program_name} ($REQUIRED)" SectionIn RO @@ -253,7 +259,10 @@ Section "{program_name} ($REQUIRED)" ; Empty $INSTDIR before writing new files to it. RmDir /r "$INSTDIR\\*.*" ; Install new files... - File /r /x .svn /x .git "${{distOutputDirectory}}\\*.*" + ; Due to a limitation of nsis, we cannot tell it to exclude vcxsrv\\fonts + ; specifically. Instead, we must tell it to match every folder named + ; "fonts" (of which there is only one.) + File /r /x .svn /x .git /x fonts "${{distOutputDirectory}}\\*.*" ; Write the installation path into the registry WriteRegStr HKLM SOFTWARE\\{program_name} "Install_Dir" "$INSTDIR" @@ -275,9 +284,66 @@ Section "{program_name} ($REQUIRED)" SectionEnd +SectionGroup "Fonts" + + ;Empirical testing shows that "misc" fixes compatibility for the majority + ;of applications with font compatibility programs. + ;So lets make "misc" be part of "recommended", and therefore the default. + ; + ;As of VcXsrv-xp 1.14.3.2 + ;misc is 412 files at 6.80 MB (7.94 MB on disk) + Section "misc" fonts-misc + ; SectionIn Recommended & Full + SectionIn 1 2 + SetOutPath "$INSTDIR\\vcxsrv\\fonts\\" + File "${{distOutputDirectory}}\\vcxsrv\\fonts\\fonts.conf" + File /r "${{distOutputDirectory}}\\vcxsrv\\fonts\\misc" + SectionEnd + + ;As of VcXsrv-xp 1.14.3.2 + ;75dpi is 1,897 files at 10.7 MB (15.6 MB on disk) + Section "75dpi" fonts-75dpi + ; SectionIn Full + SectionIn 2 + SetOutPath "$INSTDIR\\vcxsrv\\fonts\\" + File "${{distOutputDirectory}}\\vcxsrv\\fonts\\fonts.conf" + File /r "${{distOutputDirectory}}\\vcxsrv\\fonts\\75dpi" + SectionEnd + + ;As of VcXsrv-xp 1.14.3.2 + ;100dpi is 1,897 files at 12.3 MB (16.8 MB on disk) + Section "100dpi" fonts-100dpi + ; SectionIn Full + SectionIn 2 + SetOutPath "$INSTDIR\\vcxsrv\\fonts\\" + File "${{distOutputDirectory}}\\vcxsrv\\fonts\\fonts.conf" + File /r "${{distOutputDirectory}}\\vcxsrv\\fonts\\100dpi" + SectionEnd + + ;As of VcXsrv-xp 1.14.3.2 + ;everything else is 466 files at 12.8MB (13.8 MB on disk) + Section "others" fonts-others + ; SectionIn Full + SectionIn 2 + SetOutPath "$INSTDIR\\vcxsrv\\fonts\\" + File "${{distOutputDirectory}}\\vcxsrv\\fonts\\fonts.conf" + File /r "${{distOutputDirectory}}\\vcxsrv\\fonts\\cyrillic" + File /r "${{distOutputDirectory}}\\vcxsrv\\fonts\\encodings" + File /r "${{distOutputDirectory}}\\vcxsrv\\fonts\\OTF" + File /r "${{distOutputDirectory}}\\vcxsrv\\fonts\\Speedo" + File /r "${{distOutputDirectory}}\\vcxsrv\\fonts\\terminus-font" + File /r "${{distOutputDirectory}}\\vcxsrv\\fonts\\TTF" + File /r "${{distOutputDirectory}}\\vcxsrv\\fonts\\Type1" + SectionEnd + +SectionGroupEnd + ; Optional section (can be disabled by the user) Section "$STARTMENU_LINKS" + ; SectionIn Recommended & Full + SectionIn 1 2 + SetOutPath "$INSTDIR" CreateDirectory "$SMPROGRAMS\\{program_name}" CreateShortCut "$SMPROGRAMS\\{program_name}\\{program_name}.lnk" "$INSTDIR\\{program_name}.exe" "--quiet --start-xserver --start-pulseaudio --lang $LC_MESSAGES" "$INSTDIR\\icons\\{program_name}.ico" 0 @@ -292,6 +358,9 @@ SectionEnd ; Optional section (can be disabled by the user) Section "$DESKTOP_LINKS" + ; SectionIn Recommended & Full + SectionIn 1 2 + SetOutPath "$INSTDIR" CreateShortCut "$DESKTOP\\{program_name}.lnk" "$INSTDIR\\{program_name}.exe" "--quiet --start-xserver --start-pulseaudio --lang $LC_MESSAGES" "$INSTDIR\\icons\\{program_name}.ico" 0 -- Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/pyhoca-gui.git