~urs-rau-k/openlp/packaging_add-windows-ver-no

« back to all changes in this revision

Viewing changes to windows/windows-builder.py

  • Committer: Raoul Snyman
  • Author(s): Tomas Groth
  • Date: 2015-07-14 19:57:23 UTC
  • mfrom: (19.1.2 packaging-ci-fixes)
  • Revision ID: raoul@snyman.info-20150714195723-2ch396k6z1192nwg
Rename hook to make it work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
555
555
        portable_app_path = os.path.join(self.portable_path, 'App', 'OpenLP')
556
556
        dir_util.copy_tree(self.dist_path, portable_app_path)
557
557
        # Copy help files to portableapp build directory.
558
 
        self._print('  Copying help files')
559
 
        dir_util.copy_tree(self.helpfile_path, os.path.join(portable_app_path, 'help'))
 
558
        if os.path.isfile(os.path.join(self.helpfile_path, 'OpenLP.chm')):
 
559
            self._print('  Copying help files')
 
560
            dir_util.copy_tree(self.helpfile_path, os.path.join(portable_app_path, 'help'))
 
561
        else:
 
562
            self._print('... WARNING: Windows help file not found')
560
563
        # Build the launcher.
561
564
        self._print('  Building PortableApps Launcher')
562
565
        portableapps = Popen((self.portablelauncher, self.portable_path), stdout=PIPE)
582
585
        Build the PowerPoint Viewer DLL using Visual Studio.
583
586
        """
584
587
        self._print('Building PPTVIEWLIB.DLL...')
 
588
        if not os.path.exists(self.vcbuild):
 
589
            self._print('... WARNING: vcbuild.exe was not found, skipping building pptviewlib.dll')
 
590
            return
585
591
        vcbuild = Popen((self.vcbuild, '/rebuild', os.path.join(self.pptviewlib_path, 'pptviewlib.vcproj'),
586
592
                         'Release|Win32'))
587
593
        code = vcbuild.wait()