From 908fede03549bc1242daffd2c36d3a70974d1367 Mon Sep 17 00:00:00 2001 From: Jianyun Date: Fri, 24 Mar 2023 10:11:31 +0800 Subject: [PATCH] Repair tool name --- .goreleaser.yml | 16 ++++++++-------- Makefile | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 17dceb1..911d5fc 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,19 +1,19 @@ -project_name: bookimport +project_name: bookimporter before: hooks: - go mod tidy builds: - - id: bookimport - binary: bookimport + - id: bookimporter + binary: bookimporter gcflags: - all=-l -B ldflags: - -s -w - - -X github.com/jianyun8023/bookimport/cmd.gitVersion={{ .Version }} - - -X github.com/jianyun8023/bookimport/cmd.gitCommit={{ .Commit }} - - -X github.com/jianyun8023/bookimport/cmd.buildDate={{ .Date }} + - -X github.com/jianyun8023/bookimporter/cmd.gitVersion={{ .Version }} + - -X github.com/jianyun8023/bookimporter/cmd.gitCommit={{ .Commit }} + - -X github.com/jianyun8023/bookimporter/cmd.buildDate={{ .Date }} env: - CGO_ENABLED=0 goos: @@ -43,9 +43,9 @@ changelog: - '^build:' archives: - - id: bookimport + - id: bookimporter builds: - - bookimport + - bookimporter format: tar.gz wrap_in_directory: "true" format_overrides: diff --git a/Makefile b/Makefile index 4a41263..2748d37 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ help: ## Display this help /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-10s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST) build: ## Build executable files - GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o bin/booktool-linux-x64 main.go + goreleaser release --skip-publish --snapshot --rm-dist test: ## Run tests go install "github.com/rakyll/gotest@latest"