fix: make dev-app command error on Linux

This commit is contained in:
Manx98
2026-03-06 22:03:32 +08:00
committed by lyingbug
parent 111bb8b83a
commit 1d1d3de76a

View File

@@ -271,7 +271,9 @@ start_app() {
log_info "数据库地址: $DB_HOST:${DB_PORT:-5432}"
export CGO_CFLAGS="-Wno-deprecated-declarations -Wno-gnu-folding-constant"
export CGO_LDFLAGS="-Wl,-no_warn_duplicate_libraries"
if [[ "$(uname)" == "Darwin" ]]; then
export CGO_LDFLAGS="-Wl,-no_warn_duplicate_libraries"
fi
# 检查是否安装了 Air热重载工具
if command -v air &> /dev/null; then