feat: update golangci-lint config

This commit is contained in:
2025-11-11 20:10:47 +08:00
parent 78b6f9e6c5
commit 8de75b7faf
3 changed files with 273 additions and 310 deletions
+26 -3
View File
@@ -6,7 +6,30 @@
set -e
OUTPUT_DIR=${1:-./output}
if [ -z $GOOS ]; then
echo "GOOS is not set"
exit 1
fi
if [ -z $GOARCH ]; then
echo "GOARCH is not set"
exit 1
fi
mkdir -p $OUTPUT_DIR/$GOOS-$GOARCH
go build -o $OUTPUT_DIR/$GOOS-$GOARCH/server ./cmd/
OUTPUT_DIR=${1:-./output/$GOOS-$GOARCH}
mkdir -p $OUTPUT_DIR/
go build -o $OUTPUT_DIR/server ./cmd/
if [ -d ./conf ]; then
mkdir -p $OUTPUT_DIR/conf/
cp -r ./conf/* $OUTPUT_DIR/conf/
fi
if [ -d ./scripts ]; then
mkdir -p $OUTPUT_DIR/scripts/
cp -r ./scripts/* $OUTPUT_DIR/scripts/
fi
if [ -f ./scripts/Makefile ]; then
cp ./scripts/Makefile $OUTPUT_DIR/
fi