Skip to content

Commit

Permalink
fix: Use -trimprefix for release bin build
Browse files Browse the repository at this point in the history
  • Loading branch information
laurynasgadl committed Nov 29, 2024
1 parent 902fa52 commit 84b13eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ help: ## Show this help

.PHONY: build-release-bin
build-release-bin: build-frontend
GO111MODULE=on GOOS=linux GOARCH=amd64 $(go) build -ldflags '$(LDFLAGS)' -o bin/filebrowser-$(VERSION)
tar -C bin -czf "dist/filebrowser-$(VERSION).tar.gz" "filebrowser-$(VERSION)"
GO111MODULE=on GOOS=linux GOARCH=amd64 $(go) build -trimpath -ldflags '$(LDFLAGS)' -o bin/filebrowser-$(VERSION)
tar -C bin -czf "dist/filebrowser-$(VERSION).tar.gz" "filebrowser-$(VERSION)"

0 comments on commit 84b13eb

Please sign in to comment.