quote the filename in the right place

This commit is contained in:
Tomas Groth 2021-11-08 11:47:01 +00:00
parent 4d96952647
commit 661a516456
1 changed files with 2 additions and 2 deletions

View File

@ -335,10 +335,10 @@ class MacOSXBuilder(Builder):
Create .dmg file.
"""
self._print('Creating dmg file...')
dmg_name = '"OpenLP-{version}.dmg"'.format(version=self.version)
dmg_name = 'OpenLP-{version}.dmg'.format(version=self.version)
dmg_title = '"OpenLP {version}"'.format(version=self.version)
self.dmg_file = os.path.join(self.work_path, 'dist', dmg_name)
self.dmg_file = '"{dmgfile}"'.format(dmgfile=os.path.join(self.work_path, 'dist', dmg_name))
# Remove dmg if it exists.
if os.path.exists(self.dmg_file):
os.remove(self.dmg_file)