--- a/DisplayCAL/setup.py 2026-07-13 15:57:44.000000000 +0200 +++ b/DisplayCAL/setup.py 2026-11-29 21:28:35.837813574 +0100 @@ -690,7 +690,6 @@ if not is_rpm_build or doc_layout.startswith("deb"): data_files += get_data(doc, "doc", excludes=["LICENSE.txt"]) if data_files: - data_files.append((doc, [os.path.join(pydir, "..", "dist", "copyright")])) data_files.append( ( os.path.join(os.path.dirname(data), "doc-base"), @@ -704,21 +703,6 @@ ) ) - # metainfo / appdata.xml - data_files.append( - ( - os.path.join(os.path.dirname(data), "metainfo"), - [ - os.path.relpath( - os.path.normpath( - os.path.join(pydir, "..", "dist", f"{APPSTREAM_ID}.appdata.xml") - ), - source_dir, - ) - ], - ) - ) - if sys.platform not in ("darwin", "win32") or do_py2app or do_py2exe: # Linux/Unix or py2app/py2exe data_files += get_data(data, "package_data", NAME, excludes=["theme/icons/*"]) @@ -1066,13 +1050,15 @@ attrs["install_requires"] = install_requires attrs["zip_safe"] = False else: + # [project.gui-scripts] in pyproject.toml already generates the other + # launchers; only keep displaycal-apply-profiles from scripts/. attrs["scripts"].extend( os.path.join("scripts", script) for script, desc in [ script_desc for script_desc in scripts - if script_desc[0] != f"{NAME.lower()}-apply-profiles" - or sys.platform != "darwin" + if script_desc[0] == f"{NAME.lower()}-apply-profiles" + and sys.platform != "darwin" ] )