[Windows] Update all references to the ISS file after renaming it

This commit is contained in:
Raoul Snyman 2015-10-13 21:56:37 +02:00
parent 87364a9c7a
commit fa3832de1f
1 changed files with 3 additions and 3 deletions

View File

@ -493,10 +493,10 @@ class WindowsBuilder(object):
Create an InnoSetup file pointing to the branch being built.
"""
self._print('Creating Inno Setup file...')
input = open(os.path.join(self.script_path, 'OpenLP-2.0.iss.default'), 'r').read()
input = open(os.path.join(self.script_path, 'OpenLP.iss.default'), 'r').read()
output = input.replace('%(branch)s', self.branch_path)
output = output.replace('%(display_version)s', self.version)
outfile = open(os.path.join(self.script_path, 'OpenLP-2.0.iss'), 'w')
outfile = open(os.path.join(self.script_path, 'OpenLP.iss'), 'w')
outfile.write(output)
outfile.close()
@ -532,7 +532,7 @@ class WindowsBuilder(object):
"""
self._print('Running Inno Setup...')
os.chdir(self.script_path)
innosetup = Popen((self.innosetup, os.path.join(self.script_path, 'OpenLP-2.0.iss'), '/q'))
innosetup = Popen((self.innosetup, os.path.join(self.script_path, 'OpenLP.iss'), '/q'))
code = innosetup.wait()
if code != 0:
raise Exception('Error running Inno Setup')