Skip to content

Commit

Permalink
Merge pull request #2 from jianyun8023/rename-tool
Browse files Browse the repository at this point in the history
Repair tool name
  • Loading branch information
jianyun8023 authored Mar 24, 2023
2 parents c9ff4a3 + 908fede commit 80f13c1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -43,9 +43,9 @@ changelog:
- '^build:'

archives:
- id: bookimport
- id: bookimporter
builds:
- bookimport
- bookimporter
format: tar.gz
wrap_in_directory: "true"
format_overrides:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 80f13c1

Please sign in to comment.