From f42a9fb4007b75d308eef98bcdb426c420dd1a72 Mon Sep 17 00:00:00 2001 From: Karl Fischer Date: Thu, 11 Apr 2024 13:09:54 +0200 Subject: [PATCH] Add minimized build --- CHANGELOG.md | 6 ++++++ Makefile | 1 + 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb2004c1..a2ffea4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## master - unreleased +ENHANCEMENTS: + +* Support vault tls by cert path ([#112](https://github.com/fishi0x01/vsh/pull/112)) - Thank you [meridsa](https://github.com/meridsa) +* shrink binary size ([#115](https://github.com/fishi0x01/vsh/pull/115)) - Thank you [kindy](https://github.com/kindy)) +* release minimized builds ([#116](https://github.com/fishi0x01/vsh/pull/116)) + ## v0.12.2 (February, 21, 2023) ENHANCEMENTS: diff --git a/Makefile b/Makefile index 56a869b6..3bbee373 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,7 @@ compile-releases: clean ## Compile vsh binaries for multiple platforms and archi for GOARCH in $(SUPPORTED_ARCHS); do \ GOOS=$$GOOS GOARCH=$$GOARCH \ go build -mod vendor -ldflags "-X main.vshVersion=$(VERSION)" -o build/${APP_NAME}_$${GOOS}_$${GOARCH}; \ + go build -mod vendor -tags 'notokenhelper' -trimpath -ldflags "-s -w -X main.vshVersion=$(VERSION)" -o build/${APP_NAME}_notokenhelper_$${GOOS}_$${GOARCH}; \ done \ done cd build/ && sha256sum * > SHA256SUM