release_frontend.bat

This commit is contained in:
shimingxy 2025-02-14 11:22:42 +08:00
parent 6f42b6871c
commit a48a785ce4
2 changed files with 24 additions and 1 deletions

1
.gitignore vendored
View File

@ -53,6 +53,5 @@ maxkey-web-frontend/maxkey-web-app/node_modules/
maxkey-web-frontend/maxkey-web-app/.angular/
maxkey-web-frontend/maxkey-web-app/yarn.lock
maxkey-web-frontend/maxkey-web-app/dist
release_frontend.bat
**/out/*

24
release_frontend.bat Normal file
View File

@ -0,0 +1,24 @@
echo off
call setEnvVars.bat
set START_TIME="%date:~0,10% %time:~0,2%:%time:~3,5%"
echo start time %START_TIME%
rem call Set-ExecutionPolicy RemoteSigned -Scope Process
cd ./maxkey-web-frontend/maxkey-web-app
call ng build --base-href /maxkey/
cd ../../
cd ./maxkey-web-frontend/maxkey-web-mgt-app
call ng build --base-href /maxkey-mgt/
set END_TIME="%date:~0,10% %time:~0,2%:%time:~3,5%"
echo Build Release start at %START_TIME% complete at %END_TIME%.
pause