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..." echo "Build daemon..."
cd daemon cd daemon
npm run build call npm run build
echo "Build panel..." echo "Build panel..."
cd .. cd ..
cd panel cd panel
npm run build call npm run build
echo "Build frontend..." echo "Build frontend..."
cd .. cd ..
cd frontend cd frontend
npm run build call npm run build
echo "Collecting files..." echo "Collecting files..."
cd .. cd ..
@ -42,6 +42,13 @@ rd /s /q ".\daemon\dist"
rd /s /q ".\panel\dist" rd /s /q ".\panel\dist"
rd /s /q ".\frontend\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 "Done!"
echo "------------"
pause

View File

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

View File

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