-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yaml
46 lines (42 loc) · 1009 Bytes
/
.goreleaser.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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
before:
hooks:
- go mod tidy
builds:
- id: "drafts"
dir: "./cmd/drafts"
goos:
- "darwin"
- id: "drafts-callback-handler"
env:
- CGO_ENABLED=1
dir: "./cmd/drafts-callback-handler"
goos:
- "darwin"
universal_binaries:
- id: "drafts"
name_template: "drafts"
replace: true
- id: "drafts-callback-handler"
name_template: "drafts-callback-handler"
replace: true
hooks:
post:
- cmd: build/drafts-callback-handler/package-app.sh
env:
- BIN={{ .Path }}
- TARGET={{ .Target }}
archives:
- id: drafts
name_template: "drafts"
builds:
- drafts
files:
- none*
- id: "drafts-cli-helper"
name_template: "drafts-cli-helper"
meta: true # Don't include any build files
files:
- src: "dist/Drafts CLI Helper.app"
dst: "Drafts CLI Helper.app"