diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 7527be4..3553bc8 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -12,7 +12,7 @@ builds: - arm - "386" ldflags: - - -s -w -X sub2clash/config.Version={{ .Version }} + - -s -w -X sub2clash/constant.Version={{ .Version }} flags: - -trimpath archives: diff --git a/Dockerfile b/Dockerfile index 81869ea..cc89ab0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /app COPY . . RUN go mod download ARG version -RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X sub2clash/config.Version=${version}" -o sub2clash . +RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X sub2clash/constant.Version=${version}" -o sub2clash . FROM alpine:latest WORKDIR /app