From 80ebeddf97f00b226cbdab948775f3240fdab1b1 Mon Sep 17 00:00:00 2001 From: Kurt McAlpine Date: Mon, 3 Jul 2023 15:18:26 +1200 Subject: [PATCH] Fixup .goreleaser.yaml --- .gitignore | 2 ++ .goreleaser.yaml | 25 +++++++++++++++++++------ 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index e51cff3..38b23f7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ bash-eternal-history dist/ + +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a2b083c..c458811 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -13,13 +13,21 @@ builds: - linux #- windows #- darwin + archives: - - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 + - 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: @@ -30,3 +38,8 @@ changelog: exclude: - '^docs:' - '^test:' + +# The lines beneath this are called `modelines`. See `:help modeline` +# Feel free to remove those if you don't want/use them. +# yaml-language-server: $schema=https://goreleaser.com/static/schema.json +# vim: set ts=2 sw=2 tw=0 fo=cnqoj