INNER CODE UNIT · Python
renew_readme
pluwen/awesome-testflight-link · scripts/utils.py:205
def renew_readme():
if not README_TEMPLATE_FILE.exists():
print(f"Error: Template file {README_TEMPLATE_FILE} not found")
return
links_data = load_links()
with open(README_TEMPLATE_FILE, 'r', encoding='utf-8') as f:
template = f.read()
content = template
# 从 links.json 生成平台内容
platform_map = {
"iOS_APPS": ("ios", "## iOS App List\n\n"),
"iPadOS_APPS": ("ipados", "## iPadOS App List\n\n"),
"macOS_APPS": ("macos", "## macOS App List\n\n"),
"tvOS_APPS": ("tvos", "## tvOS App List\n\n"),