替换home跳转配置

This commit is contained in:
yuejiajun 2025-08-20 20:48:13 +08:00
parent 236c24202c
commit e65bdc06db

View File

@ -82,12 +82,15 @@ start "%SERVER_HUMP% Server" /B cmd /c "chcp 65001 && java !%SERVER_UPPER%_VM_PA
echo Starting %SERVER_HUMP% Website...
cd web
cd dist && mkdir temp && cd temp && cp ../wsUrl.js .
set "tmp=tmp"
cd dist && mkdir temp && cd %tmp% && cp ../wsUrl.js .
sed -i "s/6680/18680/" wsUrl.js >nul
sed -i "s/6681/18280/" wsUrl.js >nul
sed -i "s/6682/18880/" wsUrl.js >nul
sed -i "s/6683/18480/" wsUrl.js >nul
cp wsUrl.js .. && cd .. && rm -rf temp && cd ..
cp wsUrl.js .. && cd .. && rm -rf %tmp% && cd "%~dp0/web"
taskkill -f -im %SERVER_LOWER%-web.exe >nul
start "%SERVER_HUMP% Website" /B cmd /c "%SERVER_LOWER%-web.exe -c conf\web.conf"