mirror of
https://github.com/MCSManager/MCSManager.git
synced 2024-12-15 07:40:01 +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..."
|
||||
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
|
@ -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
|
@ -1,3 +1,4 @@
|
||||
start start-daemon.bat
|
||||
start start-panel.bat
|
||||
start-frontend.bat
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user