From 949930f2cfd6b77b84aab39bcbf432d41f7efcab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B6=85=E7=BA=A7=E8=80=81=E7=99=BD=E5=85=94?= Date: Tue, 12 Aug 2025 17:07:42 +0800 Subject: [PATCH] =?UTF-8?q?FEAT=20=3D>=20=E6=9C=AC=E6=AC=A1=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=A1=B9=E7=9B=AE=E4=B8=BA=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cunkebao/devlop.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Cunkebao/devlop.py b/Cunkebao/devlop.py index b96ddca5..f1aecf46 100644 --- a/Cunkebao/devlop.py +++ b/Cunkebao/devlop.py @@ -8,7 +8,7 @@ zip_name = 'dist.zip' # 上传到服务器的 zip 路径 remote_path = '/www/wwwroot/auto-devlop/ckb-operation/dist.zip' # 服务器上的临时zip路径 server_ip = '42.194.245.239' -server_port = 6523 +server_port = 6523 server_user = 'yongpxu' server_pwd = 'Aa123456789.' # 服务器 dist 相关目录 @@ -32,14 +32,14 @@ def error(msg): def step(msg): print(f"\n\033[35m==== {msg} ====" + "\033[0m") -# 1. 先运行 yarn build -step('Step 1: 构建项目 (yarn build)') -info('开始执行 yarn build...') -ret = os.system('yarn build') +# 1. 先运行 pnpm build +step('Step 1: 构建项目 (pnpm build)') +info('开始执行 pnpm build...') +ret = os.system('pnpm build') if ret != 0: - error('yarn build 失败,终止部署!') + error('pnpm build 失败,终止部署!') exit(1) -success('yarn build 完成') +success('pnpm build 完成') # 2. 打包 step('Step 2: 打包 dist 目录为 zip')