From 35b479c5086637ac34ac5185611471abc6aa416d Mon Sep 17 00:00:00 2001 From: pangp Date: Fri, 25 Oct 2024 11:42:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E9=85=8D=E7=BD=AE:=20?= =?UTF-8?q?=E6=94=AF=E6=8C=81py=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 发布配置: 支持py脚本 --- spug_api/apps/deploy/utils.py | 2 ++ spug_web/src/pages/deploy/app/Ext2Setup2.js | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/spug_api/apps/deploy/utils.py b/spug_api/apps/deploy/utils.py index a8ac9b9..90ffdeb 100644 --- a/spug_api/apps/deploy/utils.py +++ b/spug_api/apps/deploy/utils.py @@ -317,6 +317,8 @@ def _deploy_ext2_host(helper, h_id, actions, env, spug_version): command = f'mkdir -p /tmp/{spug_version} && tar xf /tmp/{tar_gz_file} -C /tmp/{spug_version}/ ' command += f'&& rm -rf {action["dst"]} && mv /tmp/{spug_version}/{sd_dst} {action["dst"]} ' command += f'&& rm -rf /tmp/{spug_version}* && echo "transfer completed"' + elif action.get('interpreter', 'shell') == 'python': + command = f"cd /tmp && python3 < item['title'] = e.target.value} placeholder="请输入"/> + + + {item['type'] === 'transfer' ? ([