Skip to content
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
.DS_Store

# ide
.idea/**
.vscode/**
**/.idea/
.idea/
.vscode/

target/*

Expand Down
26 changes: 26 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,32 @@ builds:
- -trimpath
- -gcflags=-l -B

- main: ./cmd/ts-cli
id: ts-cli-offline
binary: ts-cli-offline
tags: [offline]
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
ldflags:
- -s -w
- -X github.com/openGemini/openGemini-cli/common.Version={{.Tag}}
- -X github.com/openGemini/openGemini-cli/common.GitCommit={{.ShortCommit}}
- -X github.com/openGemini/openGemini-cli/common.BuildTime={{.Date}}
- -X github.com/openGemini/openGemini-cli/common.GitBranch={{.Branch}}
flags:
- -trimpath
- -gcflags=-l -B

archives:
- formats: [ 'zip' ]
# this name template makes the OS and Arch compatible with the results of `uname`.
Expand Down
Loading