(improvement)(build)modify the compressed package name from supersonic-standalone.tar.gz to supersonic.tar.gz (#86)

This commit is contained in:
LXW
2023-09-13 18:38:16 +08:00
committed by GitHub
parent 545fb139ee
commit c802c508fb
2 changed files with 4 additions and 6 deletions

View File

@@ -12,9 +12,7 @@ del /q "%buildDir%\*.tar.gz" 2>NUL
call mvn -f "%baseDir%\..\pom.xml" clean package -DskipTests
rem 2. move package to build
echo f|xcopy "%baseDir%\..\launchers\standalone\target\*.tar.gz" "%buildDir%\supersonic-standalone.tar.gz"
echo f|xcopy "%baseDir%\..\launchers\semantic\target\*.tar.gz" "%buildDir%\supersonic-semantic.tar.gz"
echo f|xcopy "%baseDir%\..\launchers\chat\target\*.tar.gz" "%buildDir%\supersonic-chat.tar.gz"
echo f|xcopy "%baseDir%\..\launchers\standalone\target\*.tar.gz" "%buildDir%\supersonic.tar.gz"
rem 3. build webapp
cd "%baseDir%\..\webapp"

View File

@@ -18,7 +18,6 @@ set "llm_host=127.0.0.1"
set "llm_port=9092"
set "start_name=api_service"
set "llm_path=%baseDir%\..\chat\core\src\main\python"
if "%module%"=="" (
set "module=standalone"
@@ -53,9 +52,10 @@ if "%command%"=="restart" (
::1. clear file
rd /s /q "%runtimeDir%"
mkdir "%runtimeDir%"
set "llm_path=%runtimeDir%\supersonic-standalone\llm"
if "%module%"=="llmparser" (
tar -zxvf "%buildDir%\supersonic-standalone.tar.gz" -C "%runtimeDir%"
tar -zxvf "%buildDir%\supersonic.tar.gz" -C "%runtimeDir%"
for /d %%f in ("%runtimeDir%\launchers-standalone-*") do (
move "%%f" "%runtimeDir%\supersonic-standalone"
)
@@ -68,7 +68,7 @@ if "%module%"=="llmparser" (
goto :EOF
)
tar -zxvf "%buildDir%\supersonic-%module%.tar.gz" -C "%runtimeDir%"
tar -zxvf "%buildDir%\supersonic.tar.gz" -C "%runtimeDir%"
for /d %%f in ("%runtimeDir%\launchers-%module%-*") do (
move "%%f" "%runtimeDir%\supersonic-%module%"
)