perf: applet 添加 setup.yml 校验

pull/9008/head
Eric 2022-11-01 19:06:35 +08:00
parent b159f16513
commit 1c9f754e27
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class AppletViewSet(viewsets.ModelViewSet):
zp.extractall(extract_to) zp.extractall(extract_to)
tmp_dir = os.path.join(extract_to, file.name.replace('.zip', '')) tmp_dir = os.path.join(extract_to, file.name.replace('.zip', ''))
files = ['manifest.yml', 'icon.png', 'i18n.yml'] files = ['manifest.yml', 'icon.png', 'i18n.yml', 'setup.yml']
for name in files: for name in files:
path = os.path.join(tmp_dir, name) path = os.path.join(tmp_dir, name)
if not os.path.exists(path): if not os.path.exists(path):