Develop #120

Merged
metal3d merged 8 commits from develop into master 2025-06-26 22:27:50 +00:00
Showing only changes of commit 36f6413917 - Show all commits

View File

@@ -12,6 +12,8 @@ BLD_CMD=go build -ldflags="-X 'katenary/generator.Version=$(RELEASE)$(VERSION)'"
GOOS=linux GOOS=linux
GOARCH=amd64 GOARCH=amd64
SIGNER=metal3d@gmail.com SIGNER=metal3d@gmail.com
UPX_OPTS =
UPX ?= upx $(UPX_OPTS)
BUILD_IMAGE=docker.io/golang:$(GOVERSION)-alpine BUILD_IMAGE=docker.io/golang:$(GOVERSION)-alpine
# SHELL=/bin/bash # SHELL=/bin/bash
@@ -105,7 +107,7 @@ endif
## Release build ## Release build
dist: prepare $(BINARIES) $(ASC_BINARIES) dist: prepare $(BINARIES) upx $(ASC_BINARIES)
prepare: pull prepare: pull
mkdir -p dist mkdir -p dist
@@ -147,6 +149,13 @@ gpg-sign:
dist/%.asc: dist/% dist/%.asc: dist/%
gpg --armor --detach-sign --default-key $(SIGNER) $< &>/dev/null || exit 1 gpg --armor --detach-sign --default-key $(SIGNER) $< &>/dev/null || exit 1
upx:
$(UPX) dist/katenary-linux-amd64
$(UPX) dist/katenary-linux-arm64
$(UPX) dist/katenary.exe
$(UPX) dist/katenary-darwin-amd64 --force-macos
install: build install: build
install -Dm755 katenary $(PREFIX)/bin/katenary install -Dm755 katenary $(PREFIX)/bin/katenary