mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 11:07:06 +00:00
【feat】Optimize the web app build script to include checks for the build results, preventing partial successes. (#2058)
This commit is contained in:
@@ -35,12 +35,17 @@ function buildWebapp {
|
|||||||
chmod +x $projectDir/webapp/start-fe-prod.sh
|
chmod +x $projectDir/webapp/start-fe-prod.sh
|
||||||
cd $projectDir/webapp
|
cd $projectDir/webapp
|
||||||
sh ./start-fe-prod.sh
|
sh ./start-fe-prod.sh
|
||||||
cp -fr ./supersonic-webapp.tar.gz ${buildDir}/
|
|
||||||
# check build result
|
# check build result
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Failed to build frontend webapp."
|
echo "Failed to build frontend webapp."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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"
|
echo "finished building supersonic webapp"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -178,6 +178,7 @@ export type QueryDataType = {
|
|||||||
export type ColumnType = {
|
export type ColumnType = {
|
||||||
authorized: boolean;
|
authorized: boolean;
|
||||||
name: string;
|
name: string;
|
||||||
|
nameEn: string;
|
||||||
bizName: string;
|
bizName: string;
|
||||||
showType: string;
|
showType: string;
|
||||||
type: string;
|
type: string;
|
||||||
|
|||||||
@@ -19,7 +19,10 @@ cd ./packages/chat-sdk
|
|||||||
pnpm i
|
pnpm i
|
||||||
|
|
||||||
pnpm run build
|
pnpm run build
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Failed to build chat sdk."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
pnpm link --global
|
pnpm link --global
|
||||||
|
|
||||||
cd ../supersonic-fe
|
cd ../supersonic-fe
|
||||||
|
|||||||
@@ -23,6 +23,10 @@ cd ./packages/chat-sdk
|
|||||||
pnpm i
|
pnpm i
|
||||||
|
|
||||||
pnpm run build
|
pnpm run build
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Failed to build chat sdk."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
pnpm link --global
|
pnpm link --global
|
||||||
|
|
||||||
@@ -33,6 +37,10 @@ pnpm link ../chat-sdk
|
|||||||
pnpm i
|
pnpm i
|
||||||
|
|
||||||
pnpm run build:os-local
|
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
|
tar -zcvf supersonic-webapp.tar.gz ./supersonic-webapp
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user