mirror of
https://github.com/YunoHost/yunodevtools.git
synced 2024-09-03 20:16:19 +02:00
Split apps list into official and community for backward compatibility
This commit is contained in:
parent
f1c1b02e8f
commit
bd74d7ba9f
1 changed files with 16 additions and 0 deletions
|
@ -341,3 +341,19 @@ with open(args.output, 'w') as f:
|
||||||
f.write(json.dumps(result_dict, sort_keys=True))
|
f.write(json.dumps(result_dict, sort_keys=True))
|
||||||
|
|
||||||
print("\nDone! Written in %s" % args.output)
|
print("\nDone! Written in %s" % args.output)
|
||||||
|
|
||||||
|
if args.input == "apps.json":
|
||||||
|
print("\nAlso splitting the file into official and community-build.json for backward compatibility")
|
||||||
|
|
||||||
|
official_apps = set(["agendav", "ampache", "baikal", "dokuwiki", "etherpad_mypads", "hextris", "jirafeau", "kanboard", "my_webapp", "nextcloud", "opensondage", "phpmyadmin", "piwigo", "rainloop", "roundcube", "searx", "shellinabox", "strut", "synapse", "transmission", "ttrss", "wallabag2", "wordpress", "zerobin"])
|
||||||
|
|
||||||
|
official_apps_dict = {k: v for k, v in result_dict.items() if k in official_apps}
|
||||||
|
community_apps_dict = {k: v for k, v in result_dict.items() if k not in official_apps}
|
||||||
|
|
||||||
|
with open("official-build.json", 'w') as f:
|
||||||
|
f.write(json.dumps(official_apps_dict, sort_keys=True))
|
||||||
|
|
||||||
|
with open("community-build.json", 'w') as f:
|
||||||
|
f.write(json.dumps(community_apps_dict, sort_keys=True))
|
||||||
|
|
||||||
|
print("\nDone!")
|
||||||
|
|
Loading…
Add table
Reference in a new issue