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