341 |
341 |
342 # Remove the menu entry for Linux systems |
342 # Remove the menu entry for Linux systems |
343 if sys.platform.startswith("linux"): |
343 if sys.platform.startswith("linux"): |
344 for name in ["/usr/share/pixmaps/eric.png", |
344 for name in ["/usr/share/pixmaps/eric.png", |
345 "/usr/share/applications/eric5.desktop", |
345 "/usr/share/applications/eric5.desktop", |
|
346 "/usr/share/appdata/eric5.appdata.xml", |
346 "/usr/share/pixmaps/ericWeb.png", |
347 "/usr/share/pixmaps/ericWeb.png", |
347 "/usr/share/applications/eric5_webbrowser.desktop"]: |
348 "/usr/share/applications/eric5_webbrowser.desktop"]: |
348 if os.path.exists(name): |
349 if os.path.exists(name): |
349 os.remove(name) |
350 os.remove(name) |
350 |
351 |
644 if not os.path.exists(dst): |
645 if not os.path.exists(dst): |
645 os.makedirs(dst) |
646 os.makedirs(dst) |
646 shutilCopy(os.path.join(sourceDir, "eric5.desktop"), dst) |
647 shutilCopy(os.path.join(sourceDir, "eric5.desktop"), dst) |
647 shutilCopy(os.path.join(sourceDir, "eric5_webbrowser.desktop"), |
648 shutilCopy(os.path.join(sourceDir, "eric5_webbrowser.desktop"), |
648 dst) |
649 dst) |
|
650 dst = os.path.normpath( |
|
651 os.path.join(distDir, "usr/share/appdata")) |
|
652 if not os.path.exists(dst): |
|
653 os.makedirs(dst) |
|
654 shutilCopy(os.path.join(sourceDir, "eric5.appdata.xml"), dst) |
649 else: |
655 else: |
650 shutilCopy(os.path.join( |
656 shutilCopy(os.path.join( |
651 sourceDir, "icons", "default", "eric.png"), |
657 sourceDir, "icons", "default", "eric.png"), |
652 "/usr/share/pixmaps/eric.png") |
658 "/usr/share/pixmaps/eric.png") |
653 shutilCopy(os.path.join( |
659 shutilCopy(os.path.join( |
654 sourceDir, "eric5.desktop"), |
660 sourceDir, "eric5.desktop"), |
655 "/usr/share/applications") |
661 "/usr/share/applications") |
|
662 if os.path.exists("/usr/share/appdata"): |
|
663 shutilCopy(os.path.join( |
|
664 sourceDir, "eric5.appdata.xml"), |
|
665 "/usr/share/appdata") |
656 shutilCopy(os.path.join( |
666 shutilCopy(os.path.join( |
657 sourceDir, "icons", "default", "ericWeb48.png"), |
667 sourceDir, "icons", "default", "ericWeb48.png"), |
658 "/usr/share/pixmaps/ericWeb.png") |
668 "/usr/share/pixmaps/ericWeb.png") |
659 shutilCopy(os.path.join( |
669 shutilCopy(os.path.join( |
660 sourceDir, "eric5_webbrowser.desktop"), |
670 sourceDir, "eric5_webbrowser.desktop"), |