diff --git a/.goreleaser.yml b/.goreleaser.yml index eb2932c..3b58ada 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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:" diff --git a/readme.md b/readme.md index 7d12ad9..ed603bf 100644 --- a/readme.md +++ b/readme.md @@ -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