Skip to content

Commit

Permalink
build flags
Browse files Browse the repository at this point in the history
  • Loading branch information
cheggaaa authored and fat-fellow committed May 22, 2023
1 parent 5556eda commit a316323
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ endif

build:
@$(eval FLAGS := $$(shell PATH=$(PATH) govvv -flags -pkg github.com/anytypeio/any-sync/app))
GOOS=$(BUILD_GOOS) GOARCH=$(BUILD_GOARCH) go build -v $(TAGS) -o bin/any-sync-filenode -ldflags "$(FLAGS)" github.com/anytypeio/any-sync-filenode/cmd
GOOS=$(BUILD_GOOS) GOARCH=$(BUILD_GOARCH) go build -v $(TAGS) -o bin/any-sync-filenode -ldflags "$(FLAGS) -X github.com/anytypeio/any-sync/app.AppName=any-sync-filenode" github.com/anytypeio/any-sync-filenode/cmd

build-dev:
@$(eval FLAGS := $$(shell PATH=$(PATH) govvv -flags -pkg github.com/anytypeio/any-sync/app))
Expand Down
2 changes: 2 additions & 0 deletions cmd/filenode.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ func main() {
flag.Parse()

if *flagVersion {
fmt.Println(app.AppName)
fmt.Println(app.Version())
fmt.Println(app.VersionDescription())
return
}
Expand Down

0 comments on commit a316323

Please sign in to comment.