513 if sys.platform.startswith("linux"): |
513 if sys.platform.startswith("linux"): |
514 if distDir: |
514 if distDir: |
515 dst = os.path.normpath(os.path.join(distDir, "usr/share/pixmaps")) |
515 dst = os.path.normpath(os.path.join(distDir, "usr/share/pixmaps")) |
516 if not os.path.exists(dst): |
516 if not os.path.exists(dst): |
517 os.makedirs(dst) |
517 os.makedirs(dst) |
518 shutil.copy(os.path.join(sourceDir, "icons", "default", "eric.png"), dst) |
518 shutil.copy(os.path.join(sourceDir, "icons", "default", "eric_2.png"), |
|
519 os.path.join(dst, "eric.png")) |
519 dst = os.path.normpath(os.path.join(distDir, "usr/share/applications")) |
520 dst = os.path.normpath(os.path.join(distDir, "usr/share/applications")) |
520 if not os.path.exists(dst): |
521 if not os.path.exists(dst): |
521 os.makedirs(dst) |
522 os.makedirs(dst) |
522 shutil.copy(os.path.join(sourceDir, "eric5.desktop"), dst) |
523 shutil.copy(os.path.join(sourceDir, "eric5.desktop"), dst) |
523 else: |
524 else: |
524 shutil.copy(os.path.join(sourceDir, "icons", "default", "eric.png"), |
525 shutil.copy(os.path.join(sourceDir, "icons", "default", "eric_2.png"), |
525 "/usr/share/pixmaps") |
526 "/usr/share/pixmaps/eric.png") |
526 shutil.copy(os.path.join(sourceDir, "eric5.desktop"), |
527 shutil.copy(os.path.join(sourceDir, "eric5.desktop"), |
527 "/usr/share/applications") |
528 "/usr/share/applications") |
528 |
529 |
529 # Create a Mac application bundle |
530 # Create a Mac application bundle |
530 if sys.platform == "darwin": |
531 if sys.platform == "darwin": |