fix(ci): sort extensions by package name (#195)

This commit is contained in:
beerpsi 2024-01-13 03:12:16 +07:00 committed by GitHub
parent 8db4e2e856
commit 6edfd791c9

View File

@ -95,6 +95,9 @@ for apk in REPO_APK_DIR.iterdir():
} }
) )
index_data.sort(key=lambda x: x["pkg"])
index_min_data.sort(key=lambda x: x["pkg"])
with (REPO_DIR / "index.json").open("w", encoding="utf-8") as f: with (REPO_DIR / "index.json").open("w", encoding="utf-8") as f:
index_data_str = json.dumps(index_data, ensure_ascii=False, indent=2) index_data_str = json.dumps(index_data, ensure_ascii=False, indent=2)