Skip to content

Commit 47a3953

Browse files
authored
improve the ci build/release for macos (#1)
1 parent 8ce60f0 commit 47a3953

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

.goreleaser-macos.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ builds:
2020

2121
archives:
2222
- id: egressor-darwin
23-
builds:
24-
- egressor-darwin
25-
format: tar.gz
2623
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
24+
formats:
25+
- tar.gz
2726
files:
28-
- config.yaml
29-
- README.md
30-
- LICENSE
27+
- src: config.yaml
28+
dst: .
29+
- src: README.md
30+
dst: .
31+
- src: LICENSE
32+
dst: .
3133

3234
brews:
3335
- name: egressor
@@ -41,7 +43,8 @@ brews:
4143
license: "MIT"
4244
install: |
4345
bin.install "egressor"
44-
etc.install "config.yaml" => "egressor/config.yaml"
46+
(etc/"egressor").mkpath
47+
etc.install "config.yaml" => "egressor/config.yaml" unless (etc/"egressor/config.yaml").exist?
4548
service: |
4649
run [opt_bin/"egressor", "--headless", "--config", etc/"egressor/config.yaml"]
4750
keep_alive true

0 commit comments

Comments
 (0)