mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-09 15:30:19 +08:00
修改 docker 编译
This commit is contained in:
20
build.sh
20
build.sh
@@ -11,7 +11,7 @@ function RETVAL() {
|
||||
|
||||
#当前目录
|
||||
cpath=$(pwd)
|
||||
|
||||
#ver=`cat server/base/app_ver.go | grep APP_VER | awk '{print $3}' | sed 's/"//g'`
|
||||
ver=$(cat version)
|
||||
echo "当前版本 $ver"
|
||||
|
||||
@@ -40,6 +40,24 @@ go build -o anylink "$flags" -ldflags "$ldflags"
|
||||
|
||||
cd $cpath
|
||||
|
||||
exit 0
|
||||
|
||||
echo "整理部署文件"
|
||||
deploy="anylink-deploy"
|
||||
rm -rf $deploy ${deploy}.tar.gz
|
||||
mkdir $deploy
|
||||
mkdir $deploy/log
|
||||
|
||||
cp -r server/anylink $deploy
|
||||
cp -r server/bridge-init.sh $deploy
|
||||
cp -r server/conf $deploy
|
||||
|
||||
cp -r systemd $deploy
|
||||
cp -r LICENSE $deploy
|
||||
cp -r home $deploy
|
||||
|
||||
tar zcvf ${deploy}.tar.gz $deploy
|
||||
|
||||
#注意使用root权限运行
|
||||
#cd anylink-deploy
|
||||
#sudo ./anylink --conf="conf/server.toml"
|
||||
|
Reference in New Issue
Block a user