From 327079d621bca6b5bce32c7dc0dbcc1ca7bb6bd7 Mon Sep 17 00:00:00 2001 From: ginokent <29125616+ginokent@users.noreply.github.com> Date: Wed, 15 Nov 2023 16:49:34 +0900 Subject: [PATCH 1/2] fix: modify Makefile for build -ldflags --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c5d7ecd..f665cfb 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,6 @@ export BUILD_VERSION = $(shell git describe --tags --exact-match HEAD 2>/d export BUILD_REVISION = $(shell git rev-parse HEAD) export BUILD_BRANCH = $(shell git rev-parse --abbrev-ref HEAD | tr / -) export BUILD_TIMESTAMP = $(shell git log -n 1 --format='%cI') -export GO_LDFLAGS = "-s -w -X github.com/kunitsucom/util.go/version.version=${BUILD_VERSION} -X github.com/kunitsucom/util.go/version.revision=${BUILD_REVISION} -X github.com/kunitsucom/util.go/version.branch=${BUILD_BRANCH} -X github.com/kunitsucom/util.go/version.timestamp=${BUILD_TIMESTAMP}" .DEFAULT_GOAL := help .PHONY: help @@ -91,6 +90,6 @@ release: ci ## Run goxz and gh release upload @command -v goxz >/dev/null || go install github.com/Songmu/goxz/cmd/goxz@latest git checkout main git checkout "${GIT_TAG_LATEST}" - -goxz -d "${REPO_TMP_DIR}" -os=linux,darwin,windows -arch=amd64,arm64 -pv "`git describe --tags --abbrev=0`" -trimpath -build-ldflags ${GO_LDFLAGS} ./cmd/arcgen + -goxz -d "${REPO_TMP_DIR}" -os=linux,darwin,windows -arch=amd64,arm64 -pv "`git describe --tags --abbrev=0`" -trimpath -build-ldflags "-s -w -X github.com/kunitsucom/util.go/version.version=${BUILD_VERSION} -X github.com/kunitsucom/util.go/version.revision=${BUILD_REVISION} -X github.com/kunitsucom/util.go/version.branch=${BUILD_BRANCH} -X github.com/kunitsucom/util.go/version.timestamp=${BUILD_TIMESTAMP}" ./cmd/arcgen -gh release upload "`git describe --tags --abbrev=0`" "${REPO_TMP_DIR}"/*"`git describe --tags --abbrev=0`"* git checkout "${GIT_BRANCH_CURRENT}" From eb735e8aa5280fba9bdf95ad934aac5f5e9402ee Mon Sep 17 00:00:00 2001 From: ginokent <29125616+ginokent@users.noreply.github.com> Date: Wed, 15 Nov 2023 16:54:16 +0900 Subject: [PATCH 2/2] docs: Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 38e679b..5d8a1f1 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ func (s *Group) ColumnName_Description() string { ### pre-built binary ```bash -VERSION=v0.0.6 +VERSION=v0.0.7 # download curl -fLROSs https://github.com/kunitsucom/arcgen/releases/download/${VERSION}/arcgen_${VERSION}_darwin_arm64.zip