feat: 支持打deb包
This commit is contained in:
45
build.sh
45
build.sh
@@ -1,45 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
base_dir=/workspace/projects
|
||||
[ -z "$2"] && branch='main' || branch=$2
|
||||
|
||||
# 使用说明,用来提示输入参数
|
||||
usage() {
|
||||
echo "Usage: sh start.sh [system|user|auth]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
backend(){
|
||||
cd ${base_dir}/agt-cloud
|
||||
git pull
|
||||
mvn clean package -Dmaven.test.skip=true
|
||||
cd ${base_dir}/agt-build
|
||||
}
|
||||
|
||||
# 启动程序模块(必须)
|
||||
frontend(){
|
||||
cd ${base_dir}/agt-web
|
||||
git pull
|
||||
pnpm build:antd
|
||||
cd ${base_dir}/agt-build
|
||||
}
|
||||
|
||||
|
||||
# 根据输入参数,选择执行对应方法,不输入则执行使用说明
|
||||
case "$1" in
|
||||
"backend")
|
||||
backend
|
||||
;;
|
||||
"frontend")
|
||||
frontend
|
||||
;;
|
||||
"stop")
|
||||
stop
|
||||
;;
|
||||
"rm")
|
||||
rm
|
||||
;;
|
||||
*)
|
||||
usage
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user