Skip to content
This repository was archived by the owner on Jul 7, 2024. It is now read-only.

Commit 15d40dd

Browse files
author
dl0im
committed
chore: add builder config
1 parent 610cd46 commit 15d40dd

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ temp.png
44
# built artifacts
55
miaoko
66
miaospeed
7+
dist
78
*.tgz
89
*.dev.sh
10+
*.release.sh
911

1012
# configs
1113
test.yaml

.goreleaser.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
builds:
2+
- id: miaospeed
3+
dir: .
4+
binary: miaospeed
5+
ldflags:
6+
- -s -w -X "main.COMMIT={{.Commit}}" -X "main.BUILDCOUNT={{.Env.BUILDCOUNT}}" -X "main.BRAND={{.Env.BRAND}}" -X "main.COMPILATIONTIME={{.Env.COMPILATIONTIME}}"
7+
goos:
8+
- darwin
9+
- linux
10+
- windows
11+
archives:
12+
- files:
13+
- README.md
14+
release:
15+
github:
16+
owner: miaokobot
17+
name: miaospeed

0 commit comments

Comments
 (0)