mirror of
https://gitlab.com/openlp/packaging.git
synced 2024-12-22 04:52:50 +00:00
Fix builder script to use new OpenLP run script name.
bzr-revno: 39
This commit is contained in:
commit
e17dfb2dad
@ -218,7 +218,7 @@ class Builder(object):
|
||||
else:
|
||||
self.version = None
|
||||
self.work_path = self.branch_path
|
||||
self.openlp_script = os.path.abspath(os.path.join(self.work_path, 'openlp-run.py'))
|
||||
self.openlp_script = os.path.abspath(os.path.join(self.work_path, 'run_openlp.py'))
|
||||
self.source_path = os.path.join(self.work_path, 'openlp')
|
||||
self.manual_path = os.path.join(self.documentation_path, 'manual')
|
||||
self.manual_build_path = os.path.join(self.manual_path, 'build')
|
||||
@ -269,7 +269,6 @@ class Builder(object):
|
||||
Run PyInstaller on the branch to build an executable.
|
||||
"""
|
||||
self._print('Running PyInstaller...')
|
||||
copy(os.path.join(self.work_path, 'openlp.py'), self.openlp_script)
|
||||
os.chdir(self.work_path)
|
||||
cmd = [self.python,
|
||||
self.pyinstaller_exe,
|
||||
@ -428,7 +427,8 @@ class Builder(object):
|
||||
rmtree(self.manual_build_path)
|
||||
os.chdir(self.manual_path)
|
||||
sphinx_build = self.get_sphinx_build()
|
||||
command = [self.sphinx_exe, '-b', sphinx_build, '-d', 'build/doctrees', 'source', 'build/{}'.format(sphinx_build)]
|
||||
command = [self.sphinx_exe, '-b', sphinx_build, '-d', 'build/doctrees', 'source',
|
||||
'build/{}'.format(sphinx_build)]
|
||||
self._run_command(command, 'Error running Sphinx')
|
||||
self.after_run_sphinx()
|
||||
|
||||
@ -477,5 +477,3 @@ class Builder(object):
|
||||
|
||||
self._print('Done.')
|
||||
raise SystemExit()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user