-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
69 lines (65 loc) · 1.85 KB
/
.goreleaser.yml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# =============================================================================
# GoReleaser configuration file for git-caesar
# =============================================================================
# For local testing run:
# goreleaser --skip-publish --clean --snapshot
env:
- GO111MODULE=on
before:
hooks:
- go mod download
# List of OS and architectures to build binaries for.
builds:
- env:
- CGO_ENABLED=0
binary: git-caesar
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
- arm
# Variant for ARM32
goarm:
- "5"
- "6"
- "7"
# Ignore ARM32 build for both macOS and Windows
ignore:
- goos: darwin
goarch: arm
- goos: windows
goarch: arm
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- -s -w -extldflags '-static' -X main.version={{.Version}} -X main.builtBy=goreleaser
# macOS universal binaries. It will join the binaries for AMD64 and Amd64 into
# a single binary. Suitable for Apple Silicon (Arm64) and Intel (amd64).
universal_binaries:
-
name_template: 'git-caesar'
# Remove each after joining
replace: true
# Homebrew configuration for macOS and Linux (Linuxbrew) packages.
brews:
-
name: git-caesar
description: "Encrypt/decrypt files passwordlessly using GitHub's public key."
homepage: "https://github.com/yoshi389111/git-caesar"
folder: Formula
tap:
owner: yoshi389111
name: homebrew-apps
url_template: "https://github.com/yoshi389111/git-caesar/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: goreleaserbot
email: [email protected]
download_strategy: CurlDownloadStrategy
install: |
bin.install "git-caesar"
test: |
system "#{bin}/git-caesar --version"