diff --git a/.gitignore b/.gitignore index 44c457b..81bb120 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ dist .DS_Store .idea cmd/aces/aces +cmd/aces/dist diff --git a/.goreleaser.yml b/.goreleaser.yml deleted file mode 100644 index eba9e38..0000000 --- a/.goreleaser.yml +++ /dev/null @@ -1,53 +0,0 @@ -before: - hooks: - - go mod download -builds: - - env: - - CGO_ENABLED=0 - goos: - - freebsd - - windows - - darwin - - linux - goarch: - - amd64 - - arm - - arm64 - - 386 - main: ./cmd/aces - dir: ./cmd/aces - ldflags: - - -s -w -X main.version=v{{.Version}} # -X main.commit={{.Commit}} -X main.date={{.Date}} - ignore: # problems with build - - goos: windows - goarch: arm64 -# archives: - # - replacements: - # darwin: Darwin - # linux: Linux - # windows: Windows - # 386: 32-bit - # amd64: x86_64 - # format_overrides: - # - goos: windows - # format: zip -checksum: - name_template: 'checksums.txt' -snapshot: - name_template: "{{ .Tag }}-next" -changelog: - sort: asc - filters: - exclude: - - '^docs:' - - '^test:' -brews: - - - # Repository to push the tap to. - tap: - owner: quackduck - name: homebrew-tap - - homepage: 'https://github.com/quackduck/aces' - - description: 'Encode in a character set of your choice' diff --git a/cmd/aces/.goreleaser.yml b/cmd/aces/.goreleaser.yml new file mode 100644 index 0000000..3c92dc1 --- /dev/null +++ b/cmd/aces/.goreleaser.yml @@ -0,0 +1,51 @@ +version: 1 + +before: + hooks: + # You may remove this if you don't use go modules. + - go mod tidy + +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - windows + - darwin + # main: ./cmd/aces + id: "aces" + binary: aces + ldflags: + - -s -w -X main.version=v{{.Version}} # -X main.commit={{.Commit}} -X main.date={{.Date}} + +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 + +changelog: + sort: asc + filters: + exclude: + - "^docs:" + - "^test:" + +brews: + - + repository: + owner: quackduck + name: homebrew-tap + + homepage: 'https://github.com/quackduck/aces' + + description: 'Encode in a character set of your choice' \ No newline at end of file diff --git a/cmd/aces/go.mod b/cmd/aces/go.mod index cd8b434..777ea82 100644 --- a/cmd/aces/go.mod +++ b/cmd/aces/go.mod @@ -2,6 +2,6 @@ module aces go 1.22.2 -require github.com/quackduck/aces/v2 v2.2.4 +require github.com/quackduck/aces/v2 v2.2.9 -replace github.com/quackduck/aces/v2 v2.2.4 => ../../v2 +replace github.com/quackduck/aces/v2 => ../../v2 diff --git a/cmd/aces/go.sum b/cmd/aces/go.sum index 0aaef72..f94f296 100644 --- a/cmd/aces/go.sum +++ b/cmd/aces/go.sum @@ -1,4 +1,2 @@ -github.com/quackduck/aces v1.2.1 h1:T5Pp7zwP21Oua5kyN92/ODzpSbRvr7Eazh1dlP2GhHs= -github.com/quackduck/aces v1.2.1/go.mod h1:vYQb2Re9/zAjQhTsr5eG3jtOz0iLY/Ris8Cc5e0IxXQ= -github.com/quackduck/aces/v2 v2.2.4 h1:0vyLzsedncHpBoqYUPU7RTfGuXMfGoUracpDsfOM/Y0= -github.com/quackduck/aces/v2 v2.2.4/go.mod h1:qetNncozEsd0YeiA+R9dzE91kHYfWIfy/0cR2Qzamhc= +github.com/quackduck/aces/v2 v2.2.9 h1:Q2eisMPmSPKSu8HXwmNBoN+ayF/LDw3s7gV9NB+0++Y= +github.com/quackduck/aces/v2 v2.2.9/go.mod h1:qetNncozEsd0YeiA+R9dzE91kHYfWIfy/0cR2Qzamhc=