File tree Expand file tree Collapse file tree 1 file changed +108
-43
lines changed
Expand file tree Collapse file tree 1 file changed +108
-43
lines changed Original file line number Diff line number Diff line change 1- before :
2- hooks :
3- - go generate ./...
4- project_name : AutoChange12306CDN
1+ env :
2+ - GO111MODULE=on
3+
54builds :
6- - env :
7- - CGO_ENABLED=0
8- ldflags :
9- - " -s -w"
10- binary : AutoChange12306CDN
11- goos :
12- - windows
13- - darwin
14- - linux
15- goarch :
16- - 386
17- - amd64
18- hooks :
19- post : ./upx.sh
20- archive :
21- name_template : ' {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}_v{{ .Arm }}{{ end }}'
22- format : tar.gz
23- format_overrides :
24- - goos : windows
25- format : zip
26- wrap_in_directory : true
27- files :
28- - iprange.conf
29- replacements :
30- amd64 : 64-bit
31- 386 : 32-bit
32- arm : ARM
33- arm64 : ARM64
34- darwin : macOS
35- linux : Linux
36- windows : Windows
37- openbsd : OpenBSD
38- netbsd : NetBSD
39- freebsd : FreeBSD
5+ - id : upx
6+ env :
7+ - CGO_ENABLED=0
8+ ldflags :
9+ - " -s -w"
10+ goos :
11+ - windows
12+ - darwin
13+ - linux
14+ goarch :
15+ - 386
16+ - amd64
17+ - arm
18+ - arm64
19+ - mips
20+ - mipsle
21+ goarm :
22+ - 5
23+ - 6
24+ - 7
25+ gomips :
26+ - hardfloat
27+ - softfloat
28+ ignore :
29+ - goos : darwin
30+ goarch : 386
31+ - goos : windows
32+ goarch : arm
33+ - goos : windows
34+ goarch : arm64
35+ hooks :
36+ post :
37+ - upx "{{ .Path }}"
38+ - id : noupx-freebsd
39+ env :
40+ - CGO_ENABLED=0
41+ ldflags :
42+ - -w -s
43+ goos :
44+ - freebsd
45+ goarch :
46+ - 386
47+ - amd64
48+ - arm
49+ - arm64
50+ - mips
51+ - mipsle
52+ goarm :
53+ - 5
54+ - 6
55+ - 7
56+ gomips :
57+ - hardfloat
58+ - softfloat
59+ - id : noupx-linux-mips64
60+ env :
61+ - CGO_ENABLED=0
62+ ldflags :
63+ - -w -s
64+ goos :
65+ - linux
66+ goarch :
67+ - mips64
68+ - mips64le
69+ gomips :
70+ - hardfloat
71+ - softfloat
72+ - id : noupx-windows-arm
73+ env :
74+ - CGO_ENABLED=0
75+ ldflags :
76+ - -w -s
77+ goos :
78+ - windows
79+ goarch :
80+ - arm
81+ - arm64
82+ goarm :
83+ - 5
84+ - 6
85+ - 7
86+ archives :
87+ - name_template : " {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}_v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
88+ # - name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
89+ # format: binary
90+ format : tar.gz
91+ files :
92+ - none*
93+ format_overrides :
94+ - goos : windows
95+ format : zip
96+ wrap_in_directory : false
97+ replacements :
98+ amd64 : 64-bit
99+ 386 : 32-bit
100+ arm : ARM
101+ arm64 : ARM64
102+ darwin : macOS
103+ linux : Linux
104+ windows : Windows
105+ openbsd : OpenBSD
106+ netbsd : NetBSD
107+ freebsd : FreeBSD
40108release :
41- github :
42- owner : cxjava
43- name : AutoChange12306CDN
44109 draft : true
45- prerelease : true
46- name_template : " {{.ProjectName}}-v{{.Version}}-{{.ShortCommit }}"
110+ prerelease : auto
111+ name_template : " {{.ProjectName}}-v{{.Version}}-{{.Date }}"
You can’t perform that action at this time.
0 commit comments