fix: Use `-trimpath` for release bin build (#51)

pull/3756/head
Laurynas Gadliauskas 2024-11-29 16:14:31 +02:00 committed by GitHub
parent 902fa5245f
commit 9d50f5b851
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -69,5 +69,5 @@ help: ## Show this help
.PHONY: build-release-bin .PHONY: build-release-bin
build-release-bin: build-frontend build-release-bin: build-frontend
GO111MODULE=on GOOS=linux GOARCH=amd64 $(go) build -ldflags '$(LDFLAGS)' -o bin/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)" tar -C bin -czf "dist/filebrowser-$(VERSION).tar.gz" "filebrowser-$(VERSION)"