mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 12:07:42 +00:00
(improvement)(build)modify the compressed package name from supersonic-standalone.tar.gz to supersonic.tar.gz (#86)
This commit is contained in:
@@ -12,9 +12,7 @@ del /q "%buildDir%\*.tar.gz" 2>NUL
|
|||||||
call mvn -f "%baseDir%\..\pom.xml" clean package -DskipTests
|
call mvn -f "%baseDir%\..\pom.xml" clean package -DskipTests
|
||||||
|
|
||||||
rem 2. move package to build
|
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\standalone\target\*.tar.gz" "%buildDir%\supersonic.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"
|
|
||||||
|
|
||||||
rem 3. build webapp
|
rem 3. build webapp
|
||||||
cd "%baseDir%\..\webapp"
|
cd "%baseDir%\..\webapp"
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ set "llm_host=127.0.0.1"
|
|||||||
set "llm_port=9092"
|
set "llm_port=9092"
|
||||||
set "start_name=api_service"
|
set "start_name=api_service"
|
||||||
|
|
||||||
set "llm_path=%baseDir%\..\chat\core\src\main\python"
|
|
||||||
|
|
||||||
if "%module%"=="" (
|
if "%module%"=="" (
|
||||||
set "module=standalone"
|
set "module=standalone"
|
||||||
@@ -53,9 +52,10 @@ if "%command%"=="restart" (
|
|||||||
::1. clear file
|
::1. clear file
|
||||||
rd /s /q "%runtimeDir%"
|
rd /s /q "%runtimeDir%"
|
||||||
mkdir "%runtimeDir%"
|
mkdir "%runtimeDir%"
|
||||||
|
set "llm_path=%runtimeDir%\supersonic-standalone\llm"
|
||||||
|
|
||||||
if "%module%"=="llmparser" (
|
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 (
|
for /d %%f in ("%runtimeDir%\launchers-standalone-*") do (
|
||||||
move "%%f" "%runtimeDir%\supersonic-standalone"
|
move "%%f" "%runtimeDir%\supersonic-standalone"
|
||||||
)
|
)
|
||||||
@@ -68,7 +68,7 @@ if "%module%"=="llmparser" (
|
|||||||
goto :EOF
|
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 (
|
for /d %%f in ("%runtimeDir%\launchers-%module%-*") do (
|
||||||
move "%%f" "%runtimeDir%\supersonic-%module%"
|
move "%%f" "%runtimeDir%\supersonic-%module%"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user