Skip to content

Commit

Permalink
fix: update releaser configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Mordaunt <jackmordaunt@gmail.com>
  • Loading branch information
JackMordaunt committed May 28, 2021
1 parent 8d9b7b6 commit 01d9bc5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 66 deletions.
94 changes: 28 additions & 66 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,68 +1,30 @@
project_name: icnsify
release:
github:
owner: jackmordaunt
name: icns
name_template: '{{.Tag}}'
brew:
commit_author:
name: jackmordaunt
email: jackmordaunt@gmail.com
install: bin.install "icns"
scoop:
commit_author:
name: jackmordaunt
email: jackmordaunt@gmail.com
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- goos:
- linux
- darwin
goarch:
- amd64
- "386"
goarm:
- "6"
targets:
- linux_amd64
- darwin_amd64
- windows_amd64
main: ./cmd/icnsify
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
binary: icnsify
lang: go
archive:
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm
}}v{{ .Arm }}{{ end }}'
format: tar.gz
files:
- licence*
- LICENCE*
- license*
- LICENSE*
- readme*
- README*
- changelog*
- CHANGELOG*
nfpm:
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm
}}v{{ .Arm }}{{ end }}'
bindir: /usr/local/bin
snapcraft:
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm
}}v{{ .Arm }}{{ end }}'
snapshot:
name_template: SNAPSHOT-{{ .Commit }}
- main: ./cmd/icnsify
id: "icnsify"
binary: icnsify
goos:
- linux
- windows
- darwin
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
dist: dist
sign:
cmd: gpg
args:
- --output
- $signature
- --detach-sig
- $artifact
signature: ${artifact}.sig
artifacts: none
env_files:
github_token: ~/.config/goreleaser/github_token
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ git clone /~https://github.com/jackmordaunt/icns
cd icns && go install ./cmd/preview
```

Note: Gio cannot be cross-compiled right now, so there are no `preview` builds in releases.

![preview](docs/preview.png)

## Command Line
Expand Down

0 comments on commit 01d9bc5

Please sign in to comment.