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

include font in package

This commit is contained in:
Tomas Groth 2019-02-17 22:12:05 +01:00
parent b2cb30f31b
commit 80eef6fc5b

View File

@ -372,6 +372,15 @@ class Builder(object):
self._print_verbose('... %s', filename)
copy(os.path.join(root, filename), os.path.join(dest_path, filename))
def copy_font(self):
"""
Copy OpenLP font file
"""
self._print('Copying OpenLP font...')
source = os.path.join(self.source_path, 'core', 'ui', 'fonts', 'OpenLP.ttf')
dest = os.path.join(self.dist_path, 'core', 'ui', 'fonts', 'OpenLP.ttf')
copy(source, dest)
def copy_extra_files(self):
"""
Copy any extra files which are particular to a platform
@ -468,6 +477,7 @@ class Builder(object):
self.copy_default_theme()
self.copy_plugins()
self.copy_media_player()
self.copy_font()
if os.path.exists(self.manual_path):
self.run_sphinx()
else: