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

Assume xml is text rather than binary.

This commit is contained in:
Tomas Groth 2019-04-09 21:28:25 +02:00
parent 4b81713954
commit dbd350889b

View File

@ -165,7 +165,7 @@ class WindowsBuilder(Builder):
self._print('Creating WiX file...') self._print('Creating WiX file...')
config_dir = os.path.dirname(self.config_path) config_dir = os.path.dirname(self.config_path)
self._print_verbose('Reading base WiX file') self._print_verbose('Reading base WiX file')
with open(os.path.join(config_dir, 'OpenLP-base.wxs'), 'rb') as base_file: with open(os.path.join(config_dir, 'OpenLP-base.wxs'), 'rt') as base_file:
xml = base_file.read() xml = base_file.read()
xml = xml.format(dialog=os.path.join(config_dir, 'WizardMain.bmp'), xml = xml.format(dialog=os.path.join(config_dir, 'WizardMain.bmp'),
banner=os.path.join(config_dir, 'WizardBanner.bmp')) banner=os.path.join(config_dir, 'WizardBanner.bmp'))