Skip to content

Commit

Permalink
fix version str
Browse files Browse the repository at this point in the history
  • Loading branch information
storybehind committed Aug 20, 2024
1 parent 5c4c4ef commit 817b714
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/darwin/Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ RUN go version
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin"
WORKDIR $GOPATH/src
COPY . .
RUN CC=o64-clang CXX=o64-clang++ GOOS=darwin GOARCH=amd64 go build -x -v -tags bn256 -ldflags "-X main.VersionStr=${VERSION}" -o $GOPATH/bin/zboxcli-darwin-amd64 .
RUN CC=o64-clang CXX=o64-clang++ GOOS=darwin GOARCH=arm64 go build -x -v -tags bn256 -ldflags "-X main.VersionStr=${VERSION}" -o $GOPATH/bin/zboxcli-darwin-arm64 .
RUN CC=o64-clang CXX=o64-clang++ GOOS=darwin GOARCH=amd64 go build -x -v -tags bn256 -ldflags "-X main.VersionStr=v${VERSION}" -o $GOPATH/bin/zboxcli-darwin-amd64 .
RUN CC=o64-clang CXX=o64-clang++ GOOS=darwin GOARCH=arm64 go build -x -v -tags bn256 -ldflags "-X main.VersionStr=v${VERSION}" -o $GOPATH/bin/zboxcli-darwin-arm64 .
2 changes: 1 addition & 1 deletion scripts/debian/Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ COPY go.mod go.sum .
RUN go mod download
COPY . .
RUN go env
RUN CGO_ENABLED=1 go build -x -v -tags bn256 -ldflags "-X main.VersionStr=${VERSION} -linkmode 'external' -extldflags '-static'" -o /zbox .
RUN CGO_ENABLED=1 go build -x -v -tags bn256 -ldflags "-X main.VersionStr=v${VERSION} -linkmode 'external' -extldflags '-static'" -o /zbox .

0 comments on commit 817b714

Please sign in to comment.