Feat: build script for windows

This commit is contained in:
unitwk 2023-08-21 12:39:23 +08:00
parent 323de1726a
commit 7310638661
3 changed files with 16 additions and 9 deletions

View File

@ -6,17 +6,17 @@ rd /s /q ".\panel\production"
echo "Build daemon..."
cd daemon
npm run build
call npm run build
echo "Build panel..."
cd ..
cd panel
npm run build
call npm run build
echo "Build frontend..."
cd ..
cd frontend
npm run build
call npm run build
echo "Collecting files..."
cd ..
@ -42,6 +42,13 @@ rd /s /q ".\daemon\dist"
rd /s /q ".\panel\dist"
rd /s /q ".\frontend\dist"
echo "------------"
cd "production-code\daemon"
call npm install --production
cd "../web"
call npm install --production
cd "../../"
echo "--------"
echo "Done!"
echo "------------"
pause

View File

@ -1,13 +1,12 @@
cd daemon
start npm install
call npm install
cd ..
cd panel
start npm install
call npm install
cd ..
cd frontend
start npm install
call npm install
pause

View File

@ -1,3 +1,4 @@
start start-daemon.bat
start start-panel.bat
start-frontend.bat