1
0
mirror of https://gitlab.com/openlp/packaging.git synced 2024-12-22 13:02:50 +00:00

Add architecture into MSI file name

This commit is contained in:
Raoul Snyman 2019-04-11 09:54:19 -07:00
parent 2878cc7198
commit 2151a84908

View File

@ -200,7 +200,11 @@ class WindowsBuilder(Builder):
Run the WiX toolset to create an installer
"""
self._print('Running WiX tools...')
msi_file = os.path.abspath(os.path.join(self.dist_path, '..', 'OpenLP-{}.msi'.format(self.version)))
if self.arch == 'x64':
version = '{}-x64'.format(self.version)
else:
version = self.version
msi_file = os.path.abspath(os.path.join(self.dist_path, '..', 'OpenLP-{}.msi'.format(version)))
if os.path.exists(msi_file):
self._print_verbose('Removing old MSI file')
os.unlink(msi_file)