mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-03-01 16:16:18 +08:00
Feat: build script for windows
This commit is contained in:
parent
323de1726a
commit
7310638661
17
build.bat
17
build.bat
@ -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
|
@ -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
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user