mirror of
https://gitlab.com/openlp/packaging.git
synced 2024-12-22 04:52:50 +00:00
Check for msi to exist before trying to delete it.
This commit is contained in:
parent
52a9793686
commit
65082417e4
@ -195,7 +195,7 @@ class WindowsBuilder(Builder):
|
||||
"""
|
||||
self._print('Running WiX tools...')
|
||||
msi_file = os.path.join(self.dist_path, 'OpenLP-{}.msi'.format(self.version))
|
||||
if msi_file:
|
||||
if os.path.exists(msi_file):
|
||||
self._print_verbose('Removing old MSI file')
|
||||
os.unlink(msi_file)
|
||||
config_dir = os.path.dirname(self.config_path)
|
||||
@ -372,11 +372,6 @@ class WindowsBuilder(Builder):
|
||||
copy(os.path.join(self.mutool_exe), os.path.join(self.dist_path, 'mutool.exe'))
|
||||
else:
|
||||
self._print('... WARNING: mutool.exe not found')
|
||||
self._print_verbose('... MediaInfo.exe')
|
||||
if self.mediainfo_exe and os.path.isfile(self.mediainfo_exe):
|
||||
copy(os.path.join(self.mediainfo_exe), os.path.join(self.dist_path, 'MediaInfo.exe'))
|
||||
else:
|
||||
self._print('... WARNING: MediaInfo.exe not found')
|
||||
|
||||
def after_run_sphinx(self):
|
||||
"""
|
||||
|
@ -6,7 +6,6 @@ lrelease = C:\Qt\5.12\msvc2017\bin\lrelease.exe
|
||||
portablelauncher = %(here)s\..\..\PortableApps.comLauncher\PortableApps.comLauncherGenerator.exe
|
||||
portableinstaller = %(here)s\..\..\PortableApps.comInstaller\PortableApps.comInstaller.exe
|
||||
mutool = %(here)s\..\..\mupdf-1.14.0-windows\mutool.exe
|
||||
mediainfo = %(here)s\..\..\MediaInfo\MediaInfo.exe
|
||||
candle = %(progfiles)s\WiX Toolset v3.11\bin\candle.exe
|
||||
light = %(progfiles)s\WiX Toolset v3.11\bin\light.exe
|
||||
|
||||
|
@ -6,7 +6,6 @@ lrelease = %(sitepackages)s\PyQt5\bin\lrelease.exe
|
||||
portablelauncher = %(progfiles)s\PortableApps.comLauncher\PortableApps.comLauncherGenerator.exe
|
||||
portableinstaller = %(progfiles)s\PortableApps.comInstaller\PortableApps.comInstaller.exe
|
||||
mutool = %(here)s\..\mupdf-1.9a-windows\mutool.exe
|
||||
mediainfo = %(here)s\..\MediaInfo\MediaInfo.exe
|
||||
candle = %(progfiles)s\WiX Toolset v3.11\bin\candle.exe
|
||||
light = %(progfiles)s\WiX Toolset v3.11\bin\light.exe
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user