mirror of
https://github.com/YunoHost/yunodevtools.git
synced 2024-09-03 20:16:19 +02:00
remove the app install question and resources parts which aint needed anymore by webadmin etc (or at least we think ;P)
This commit is contained in:
parent
c9a1acbd4b
commit
5ad77cd2b7
1 changed files with 7 additions and 0 deletions
|
@ -206,6 +206,13 @@ def build_catalog():
|
||||||
if packaging_format < 2:
|
if packaging_format < 2:
|
||||||
app["manifest"] = convert_v1_manifest_to_v2_for_catalog(app["manifest"])
|
app["manifest"] = convert_v1_manifest_to_v2_for_catalog(app["manifest"])
|
||||||
|
|
||||||
|
# We also remove the app install question and resources parts which aint needed anymore by webadmin etc (or at least we think ;P)
|
||||||
|
for app in result_dict_with_manifest_v2.values():
|
||||||
|
if "manifest" in app and "install" in app["manifest"]:
|
||||||
|
del app["manifest"]["install"]
|
||||||
|
if "manifest" in app and "resources" in app["manifest"]:
|
||||||
|
del app["manifest"]["resources"]
|
||||||
|
|
||||||
os.system("mkdir -p ./builds/default/v3/")
|
os.system("mkdir -p ./builds/default/v3/")
|
||||||
with open("builds/default/v3/apps.json", "w") as f:
|
with open("builds/default/v3/apps.json", "w") as f:
|
||||||
f.write(
|
f.write(
|
||||||
|
|
Loading…
Add table
Reference in a new issue