catch errors during install
This commit is contained in:
@@ -4,14 +4,19 @@ import sys
|
|||||||
import textwrap
|
import textwrap
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
log = logging.getLogger("install")
|
||||||
|
|
||||||
|
|
||||||
def install():
|
def install():
|
||||||
if sys.platform == 'win32' or sys.platform == 'cygwin':
|
try:
|
||||||
_windows_set_icon()
|
if sys.platform == 'win32' or sys.platform == 'cygwin':
|
||||||
else:
|
_windows_set_icon()
|
||||||
if _is_executable():
|
else:
|
||||||
_linux_install_desktop_file()
|
if _is_executable():
|
||||||
_linux_install_icon()
|
_linux_install_desktop_file()
|
||||||
|
_linux_install_icon()
|
||||||
|
except:
|
||||||
|
log.exception("failed to install system stuff")
|
||||||
|
|
||||||
|
|
||||||
def _is_executable() -> bool:
|
def _is_executable() -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user