mirror of https://github.com/jumpserver/jumpserver
perf: applet 添加 setup.yml 校验
parent
b159f16513
commit
1c9f754e27
|
@ -54,7 +54,7 @@ class AppletViewSet(viewsets.ModelViewSet):
|
|||
zp.extractall(extract_to)
|
||||
|
||||
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:
|
||||
path = os.path.join(tmp_dir, name)
|
||||
if not os.path.exists(path):
|
||||
|
|
Loading…
Reference in New Issue