mirror of
https://github.com/jixishi/SerialTerminalForWindowsTerminal.git
synced 2026-06-15 16:42:46 +00:00
chore: update goreleaser config to v2 format
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
+35
-62
@@ -1,62 +1,35 @@
|
|||||||
#file: noinspection YAMLSchemaValidation
|
version: 2
|
||||||
# This is an example .goreleaser.yml file with some sensible defaults.
|
|
||||||
# Make sure to check the documentation at https://goreleaser.com
|
builds:
|
||||||
|
- main: ./cmd/serialterminal
|
||||||
# The lines below are called `modelines`. See `:help modeline`
|
env:
|
||||||
# Feel free to remove those if you don't want/need to use them.
|
- CGO_ENABLED=0
|
||||||
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
|
goos:
|
||||||
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
|
- linux
|
||||||
|
- windows
|
||||||
version: 1
|
- darwin
|
||||||
|
ldflags:
|
||||||
before:
|
- -s -w
|
||||||
hooks:
|
|
||||||
# You may remove this if you don't use go modules.
|
archives:
|
||||||
# - go mod tidy
|
- format: tar.gz
|
||||||
# you may remove this if you don't need go generate
|
name_template: >-
|
||||||
# - go generate ./...
|
{{ .ProjectName }}_
|
||||||
|
{{- title .Os }}_
|
||||||
builds:
|
{{- if eq .Arch "amd64" }}x86_64
|
||||||
- main: ./cmd/serialterminal
|
{{- else if eq .Arch "386" }}i386
|
||||||
env:
|
{{- else }}{{ .Arch }}{{ end }}
|
||||||
- CGO_ENABLED=0
|
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
||||||
goos:
|
format_overrides:
|
||||||
- linux
|
- goos: windows
|
||||||
- windows
|
format: zip
|
||||||
- darwin
|
|
||||||
ldflags:
|
checksum:
|
||||||
- -s -w
|
name_template: 'checksums.txt'
|
||||||
|
|
||||||
upx:
|
changelog:
|
||||||
- enabled: true
|
sort: asc
|
||||||
goos:
|
filters:
|
||||||
- windows
|
exclude:
|
||||||
goarch:
|
- "^docs:"
|
||||||
- amd64
|
- "^test:"
|
||||||
|
|
||||||
archives:
|
|
||||||
- format: tar.gz
|
|
||||||
# this name template makes the OS and Arch compatible with the results of `uname`.
|
|
||||||
name_template: >-
|
|
||||||
{{ .ProjectName }}_
|
|
||||||
{{- title .Os }}_
|
|
||||||
{{- if eq .Arch "amd64" }}x86_64
|
|
||||||
{{- else if eq .Arch "386" }}i386
|
|
||||||
{{- else }}{{ .Arch }}{{ end }}
|
|
||||||
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
|
||||||
# use zip for windows archives
|
|
||||||
format_overrides:
|
|
||||||
- goos: windows
|
|
||||||
format: zip
|
|
||||||
checksum:
|
|
||||||
name_template: 'checksums.txt'
|
|
||||||
|
|
||||||
snapshot:
|
|
||||||
name_template: 'v1.0.0-snapshot'
|
|
||||||
|
|
||||||
changelog:
|
|
||||||
sort: asc
|
|
||||||
filters:
|
|
||||||
exclude:
|
|
||||||
- "^docs:"
|
|
||||||
- "^test:"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user