From a1a6827edea6100849b28d0ef3cdc99c23d8b125 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期二, 19 十一月 2024 11:21:17 +0800
Subject: [PATCH] 集成 wi.amis

---
 scripts/deploy.js |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/scripts/deploy.js b/scripts/deploy.js
index 47ac3db..dc4b627 100644
--- a/scripts/deploy.js
+++ b/scripts/deploy.js
@@ -1,4 +1,5 @@
-const { uploadFiles, customerList,checkCustomer } = require('./helper');
+const { uploadFiles, customerList, checkCustomer, changeBranch,deployEnv } = require('./helper');
+const { execSync } = require('child_process');
 
 if (!customerList || customerList.length === 0) {
 	logError(`璇锋纭娇鐢ㄥ懡浠� 鈥渘pm run deploy [customer1,customer2,customer3,...]鈥濓紝
@@ -6,6 +7,14 @@
 	`);
 	exit(); // 閫�鍑鸿剼鏈�
 }
-checkCustomer('npm run deploy')
+const myEnv = deployEnv==='pro'?'prod':'dev'
+changeBranch();
 
-uploadFiles();
+checkCustomer('npm run deploy');
+
+// uploadFiles();
+try {
+	execSync(`npx deploy ${myEnv}`, { stdio: 'inherit' });
+} catch (error) {}
+
+

--
Gitblit v1.9.3