ci-gui: show list of installed and failed titles

This commit is contained in:
Ian Burgwin
2020-12-02 22:13:17 -08:00
parent 793d923240
commit a529ecf760

View File

@@ -419,17 +419,32 @@ class CustomInstallGUI(ttk.Frame):
def install(): def install():
try: try:
result, copied_3dsx = installer.start() result, copied_3dsx = installer.start()
if result is True: if result:
self.log('Done!') self.log('Done!')
if copied_3dsx: if result['installed']:
self.show_info('custom-install-finalize has been copied to the SD card.\n' if copied_3dsx:
message = ('custom-install-finalize has been copied to the SD card.\n'
'To finish the install, run this on the console through the homebrew launcher.\n' 'To finish the install, run this on the console through the homebrew launcher.\n'
'This will install a ticket and seed if required.') 'This will install a ticket and seed if required.')
else: else:
self.show_info('To finish the install, run custom-install-finalize on the console.\n' message = ('To finish the install, run custom-install-finalize on the console.\n'
'This will install a ticket and seed if required.') 'This will install a ticket and seed if required.')
elif result is False: else:
self.show_error('An error occurred when trying to run save3ds_fuse.') if result['failed']:
message = ('Some titles failed to install. Others may be and can be finished with '
'custom-install-finalize.')
else:
message = 'Nothing was installed.'
if result['installed']:
message += '\n\nInstalled:\n' + ('\n'.join(result['installed']))
if result['failed']:
message += '\n\nFailed to install:\n' + ('\n'.join(result['failed']))
self.show_info(message)
elif result is None:
self.show_error("An error occurred when trying to run save3ds_fuse.\n"
"Either title.db doesn't exist, or save3ds_fuse couldn't be run.")
self.open_console() self.open_console()
except: except:
installer.event.on_error(exc_info()) installer.event.on_error(exc_info())