diff --git a/assembly/bin/supersonic-build.sh b/assembly/bin/supersonic-build.sh index 44e94e033..e26729588 100755 --- a/assembly/bin/supersonic-build.sh +++ b/assembly/bin/supersonic-build.sh @@ -35,12 +35,17 @@ function buildWebapp { chmod +x $projectDir/webapp/start-fe-prod.sh cd $projectDir/webapp sh ./start-fe-prod.sh - cp -fr ./supersonic-webapp.tar.gz ${buildDir}/ # check build result if [ $? -ne 0 ]; then echo "Failed to build frontend webapp." exit 1 fi + cp -fr ./supersonic-webapp.tar.gz ${buildDir}/ + # check build result + if [ $? -ne 0 ]; then + echo "Failed to get supersonic webapp package." + exit 1 + fi echo "finished building supersonic webapp" } diff --git a/webapp/packages/chat-sdk/src/common/type.ts b/webapp/packages/chat-sdk/src/common/type.ts index 38ebbc98a..da70d4c51 100644 --- a/webapp/packages/chat-sdk/src/common/type.ts +++ b/webapp/packages/chat-sdk/src/common/type.ts @@ -178,6 +178,7 @@ export type QueryDataType = { export type ColumnType = { authorized: boolean; name: string; + nameEn: string; bizName: string; showType: string; type: string; diff --git a/webapp/start-fe-dev.sh b/webapp/start-fe-dev.sh index 9a1faf08b..1af023502 100755 --- a/webapp/start-fe-dev.sh +++ b/webapp/start-fe-dev.sh @@ -19,7 +19,10 @@ cd ./packages/chat-sdk pnpm i pnpm run build - +if [ $? -ne 0 ]; then + echo "Failed to build chat sdk." + exit 1 +fi pnpm link --global cd ../supersonic-fe diff --git a/webapp/start-fe-prod.sh b/webapp/start-fe-prod.sh index a1eae9c7e..3f60c19c7 100755 --- a/webapp/start-fe-prod.sh +++ b/webapp/start-fe-prod.sh @@ -23,6 +23,10 @@ cd ./packages/chat-sdk pnpm i pnpm run build +if [ $? -ne 0 ]; then + echo "Failed to build chat sdk." + exit 1 +fi pnpm link --global @@ -33,6 +37,10 @@ pnpm link ../chat-sdk pnpm i pnpm run build:os-local +if [ $? -ne 0 ]; then + echo "Failed to build supersonic-fe." + exit 1 +fi tar -zcvf supersonic-webapp.tar.gz ./supersonic-webapp