From 4867e701a5ad2ca3db9f481c9ffd5ad4ebab5b84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Wed, 25 Sep 2024 15:17:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=BD=E4=BB=A4=E6=89=93=E5=8D=B0=20nodejs?= =?UTF-8?q?=20=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _script/1、installEnv.bat | 3 +++ _script/2、installBootstrap.bat | 2 ++ _script/3、buildAndRun.bat | 2 ++ _script/4、generateSetupFile.bat | 3 +++ 4 files changed, 10 insertions(+) diff --git a/_script/1、installEnv.bat b/_script/1、installEnv.bat index ec34938..d395bf8 100644 --- a/_script/1、installEnv.bat +++ b/_script/1、installEnv.bat @@ -1,4 +1,7 @@ cd ../ +node -v + npm install -g cnpm --registry=https://registry.npmmirror.com + cnpm install -g lerna@6 diff --git a/_script/2、installBootstrap.bat b/_script/2、installBootstrap.bat index c8c2c0b..73d4d58 100644 --- a/_script/2、installBootstrap.bat +++ b/_script/2、installBootstrap.bat @@ -1,3 +1,5 @@ cd ../ +node -v + lerna bootstrap diff --git a/_script/3、buildAndRun.bat b/_script/3、buildAndRun.bat index 8def8d5..444ef34 100644 --- a/_script/3、buildAndRun.bat +++ b/_script/3、buildAndRun.bat @@ -1,3 +1,5 @@ cd ../packages/gui +node -v + npm run electron diff --git a/_script/4、generateSetupFile.bat b/_script/4、generateSetupFile.bat index bff92f8..e7ffa2b 100644 --- a/_script/4、generateSetupFile.bat +++ b/_script/4、generateSetupFile.bat @@ -1,5 +1,8 @@ cd ../packages/gui +node -v + if not exist "dist_electron" mkdir "dist_electron" start dist_electron + npm run electron:build