Skip to content

Commit

Permalink
build: 更新 goreleaser 配置文件 | Update goreleaser configuration file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuoqiu-Yingyi committed Mar 15, 2023
1 parent f35fb9a commit 1e1403f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: 1.20

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
Expand Down
8 changes: 4 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ archives:
# - `{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}`
# name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}"
name_template: >-
{{ .ProjectName }}
_v{{- .Version }}
_{{- if eq .Os "windows"}}Windows
{{ .ProjectName }}_v
{{- .Version }}_
{{- if eq .Os "windows"}}Windows
{{- else if eq .Os "linux" }}Linux
{{- else if eq .Os "darwin" }}macOS
{{- end }}_
{{- .Arch }}
{{- end }}
# Set to true, if you want all files in the archive to be in a single directory.
# If set to true and you extract the archive 'goreleaser_Linux_arm64.tar.gz',
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- 修复悬浮预览窗口 | Fixed the popover preview window.
- 调整 `protyle` 元素 ID | Adjust the `protyle` element ID.
- 默认配置更改为使用系统 Emoji 图标 | Default configuration changed to use system Emoji icon.
- 更新 goreleaser 配置文件 | Update goreleaser configuration file.

## v0.1.4 / 2022-10-18

Expand Down
10 changes: 5 additions & 5 deletions dev.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ archives:
# - `{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}`
# name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}"
name_template: >-
{{ .ProjectName }}
_v{{- .Version }}
_{{- if eq .Os "windows"}}Windows
{{ .ProjectName }}_v
{{- .Version }}_
{{- if eq .Os "windows"}}Windows
{{- else if eq .Os "linux" }}Linux
{{- else if eq .Os "darwin" }}macOS
{{ end }}_
{{ .Arch }}
{{- end }}_
{{- .Arch }}
# Set to true, if you want all files in the archive to be in a single directory.
# If set to true and you extract the archive 'goreleaser_Linux_arm64.tar.gz',
Expand Down

0 comments on commit 1e1403f

Please sign in to comment.