Clobber extras on headless targets

This commit is contained in:
Davide Cavalca 2023-08-28 12:53:11 -04:00
parent 70d38311f7
commit 10d62cc9c6

View File

@ -143,6 +143,10 @@ def packageBuild(target):
data["name"] = target["name"] data["name"] = target["name"]
data["default_os_name"] = target["os_name"] data["default_os_name"] = target["os_name"]
data["package"] = f"{base}.zip" data["package"] = f"{base}.zip"
# Clobber extras as we don't want them on headless builds and
# make-asahi-installer-package.sh doesn't have awareness of the target
if target["id"] == "server" or target["id"] == "minimal":
data["extras"] = {}
with open(f"{base}.json", "w") as f: with open(f"{base}.json", "w") as f:
json.dump(data, f) json.dump(data, f)