feat: 支持打deb包

This commit is contained in:
caiyuchao committed 2025-09-26 10:28:57 +08:00
1 parent 1ddc416cad
commit 5d7b388b07
19 files changed
+73 -2

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
# 查看更多 .gitignore 配置 -> https://help.github.com/articles/ignoring-files/
/agt/jar/agt-server.jar
/nginx/html/dist/
/opt/agt/docker/agt/jar/agt-server.jar
/opt/agt/docker/nginx/html/dist/
+10
View File
@@ -0,0 +1,10 @@
Package: license-server
Version: 1.0.0
Section: license-server
Prioritt: optional
Architecture: amd64
Maintainer: wfc
Depends:
Description: License Server
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
dpkg-deb --build agt-1.1.0-20250926-ub22
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+59
View File
@@ -0,0 +1,59 @@
#!/bin/sh
[ -z "$2"] && branch='main' || branch=$2
# 使用说明,用来提示输入参数
usage() {
echo "Usage: sh start.sh [system|user|auth]"
exit 1
}
common(){
cd ..
git checkout $branch
git pull
mvn clean package -Dmaven.test.skip=true -P test
cd docker
}
# 启动程序模块(必须)
backend(){
echo "begin copy agt-server "
cp ../agt-server.jar ./agt/jar/
sudo docker stop agt-server
sudo docker rm agt-server
sudo docker rmi deploy_agt-server
sudo docker-compose up -d agt-server
}
frontend(){
echo "begin copy agt-server "
mkdir -p ./nginx/html/dist
rm -rf ./nginx/html/dist/*
rm -rf ./dist/*
cd dist
cp ../../dist.zip ./
unzip ./dist.zip
cd ..
cp -rf ./dist/* ./nginx/html/dist/
}
# 根据输入参数,选择执行对应方法,不输入则执行使用说明
case "$1" in
"backend")
backend
;;
"frontend")
frontend
;;
"stop")
stop
;;
"rm")
rm
;;
*)
usage
;;
esac