fix: make dev-app command error on Linux

main
Manx98 2026-03-06 22:03:32 +08:00 committed by lyingbug
parent 111bb8b83a
commit 1d1d3de76a
1 changed files with 3 additions and 1 deletions

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