CI: Update version json

This commit is contained in:
xtaodada 2023-03-26 16:30:57 +08:00
parent 3174b687c8
commit d2399e10a0
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 4 additions and 3 deletions

View File

@ -1007,7 +1007,7 @@
"maintainer": "Ricky8955555",
"size": "2.73 kb",
"supported": true,
"des-short": "morse 摩斯密码转换\n\nCo-authored-by: xtaodada <xtao@xtaolink.cn>",
"des-short": "morse 摩斯密码转换",
"des": "摩斯密码转换 (支持非英文)\n\n指令:\n- `,enmorse <待转换文本>` (转换指定文本到摩斯密码)\n- `,demorse <摩斯密码>` (转换摩斯密码到明文)"
},
{
@ -1017,7 +1017,7 @@
"maintainer": "Ricky8955555",
"size": "0.976 kb",
"supported": true,
"des-short": "idna 国际化域名 (IDNA) 编码转换工具\n\nCo-authored-by: xtaodada <xtao@xtaolink.cn>",
"des-short": "idna 国际化域名 (IDNA) 编码转换工具",
"des": "国际化域名 (IDNA) 编码转换工具\n\n指令:\n- `,punyencode <待编码内容>` (编码至 Punycode)\n- `,punydecode <待解码内容>` (从 Punycode 解码)"
}
]

View File

@ -30,6 +30,7 @@ for plugin in plugins:
list_json["list"].remove(plug_dict)
break
if not exist:
short_des = main['commit']['message'].split("\nCo-authored-by")[0].strip()
list_json["list"].append(
{
"name": plugin,
@ -38,7 +39,7 @@ for plugin in plugins:
"maintainer": main['commit']['author']['name'],
"size": f"{os.path.getsize(f'{plugin}{os.sep}main.py') / 1000} kb",
"supported": True,
"des-short": main['commit']['message'],
"des-short": short_des,
"des": "",
}
)