-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.mac.yaml
54 lines (42 loc) · 1.43 KB
/
.goreleaser.mac.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
project_name: dbnet
before:
hooks:
- go mod edit -dropreplace='github.com/flarco/g' go.mod
- go mod edit -dropreplace='github.com/slingdata-io/sling-cli' go.mod
- go mod edit -dropreplace='github.com/dbrest-io/dbrest' go.mod
- go mod edit -dropreplace='github.com/slingdata-io/sling-cli' go.mod
- go mod tidy
builds:
- main: .
env:
- CGO_ENABLED=1
goarch:
- amd64
- arm64
goos:
- darwin
ldflags:
- "-X 'github.com/dbnet-io/dbnet/env.Version={{ .Version }}' -X 'github.com/dbnet-io/dbnet/env.RudderstackURL={{ .Env.RUDDERSTACK_URL }}'"
universal_binaries:
- id: dbnet
replace: false
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
checksum:
name_template: "{{ .ProjectName }}_{{ .Runtime.Goos }}_{{ .Runtime.Goarch }}_checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}"
release:
mode: replace
header: |
## dbNet {{ .Tag }} ({{ .Date }})
brews:
- name: dbnet
repository:
owner: dbnet-io
name: homebrew-dbnet
branch: main
homepage: https://github.com/dbnet-io/dbnet
description: "A database client that lets your SQL superpowers shine."