fix: dist tar

This commit is contained in:
henry.chen
2025-07-25 09:27:16 +08:00
parent ea566d1650
commit cb2ed7cb82
2 changed files with 7 additions and 3 deletions

View File

@@ -2,8 +2,8 @@ apimode:
name: cmd-backup
listen: 0.0.0.0:9000
database: # 数据库配置
driver: sqlite
source: ./db.sqlite
driver: mongodb
source: mongodb://localhost:27017
backupto: qiniu # 备份到, default: qiniu
interval: 7d # 备份周期, default: 7d
validity: 60 # 备份保留时间, default: 60

View File

@@ -11,6 +11,10 @@ for file in cmd/*; do
for os in linux darwin windows; do
_target="$app-$_tag.$os-$_arch.tar.gz"
GOOS=$os GOARCH=$_arch scripts/run_build.sh $app
tar czf $_target ./cmd/$app/etc ./cmd/$app/backend
# Create tar with flattened structure using -C parameter
tar czf "$_target" \
CHANGELOG.md LICENSE README.md \
-C "./cmd/$app" etc backend
done
done