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

(hopefully) Fix the portable build once and for all

This commit is contained in:
Raoul Snyman 2016-12-11 14:20:35 +02:00
parent a2c416b09b
commit 19b5a489cf

View File

@ -225,10 +225,11 @@ class WindowsBuilder(Builder):
self._print_verbose('... Building PortableApps Installer') self._print_verbose('... Building PortableApps Installer')
self._run_command([self.portableinstaller_exe, self.portable_dest_path], self._run_command([self.portableinstaller_exe, self.portable_dest_path],
'Error running PortableApps Installer') 'Error running PortableApps Installer')
portable_app = os.path.join(self.portable_dest_path, 'OpenLPPortable_%s.paf.exe' % self.portable_version) portable_exe_name = 'OpenLPPortable_%s.paf.exe' % self.portable_version
self._print_verbose('... Portable Build: {}'.format(portable_app)) portable_exe_path = os.path.join(self.portable_dest_path, '..', portable_exe_name)
if os.path.exists(portable_app): self._print_verbose('... Portable Build: {}'.format(portable_exe_path))
move(portable_app, os.path.join(self.dist_path, 'OpenLPPortable_%s.paf.exe' % self.portable_version)) if os.path.exists(portable_exe_path):
move(portable_exe_path, os.path.join(self.dist_path, portable_exe_name))
self._print('PortableApp build complete') self._print('PortableApp build complete')
else: else:
raise Exception('PortableApp failed to build') raise Exception('PortableApp failed to build')
@ -269,7 +270,7 @@ class WindowsBuilder(Builder):
Add extra arguments to the command line argument parser Add extra arguments to the command line argument parser
""" """
parser.add_argument('--portable', action='store_true', default=False, parser.add_argument('--portable', action='store_true', default=False,
help='Specify the path to build the portable installation.') help='Build a PortableApps.com build of OpenLP too')
def setup_system_paths(self): def setup_system_paths(self):
""" """