Skip to content

Commit

Permalink
Fixed macOS build flags
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianrudnik committed Nov 12, 2023
1 parent 0d5cfb2 commit 4de5449
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/bin/compile-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ CGO_ENABLED=1 \
GOARCH=amd64 \
GOOS=darwin \
go build \
-ldflags="-s -w -X=main.AppVersion=${APP_VERSION} -X=main.BuildCommit=${BUILD_COMMIT} -X=main.BuildDate=${BUILD_DATE} -ldflags=-X=main.BuildNumber=${BUILD_NUMBER}" \
-ldflags="-s -w -X=main.AppVersion=${APP_VERSION} -X=main.BuildCommit=${BUILD_COMMIT} -X=main.BuildDate=${BUILD_DATE} -X=main.BuildNumber=${BUILD_NUMBER}" \
-o ablegram_darwin_amd64 \
.

Expand All @@ -63,7 +63,7 @@ CGO_ENABLED=1 \
GOARCH=arm64 \
GOOS=darwin \
go build \
-ldflags="-s -w -X=main.AppVersion=${APP_VERSION} -X=main.BuildCommit=${BUILD_COMMIT} -X=main.BuildDate=${BUILD_DATE} -ldflags=-X=main.BuildNumber=${BUILD_NUMBER}" \
-ldflags="-s -w -X=main.AppVersion=${APP_VERSION} -X=main.BuildCommit=${BUILD_COMMIT} -X=main.BuildDate=${BUILD_DATE} -X=main.BuildNumber=${BUILD_NUMBER}" \
-o ablegram_darwin_arm64 \
.

Expand Down

0 comments on commit 4de5449

Please sign in to comment.