Skip to content

Modern Docker Management, Designed for Everyone

chore: update goreleaser config for cli release

Kyle Mendellae145cde81d0
diff --git a/.gitignore b/.gitignore
index e45ff33e5..a7a3506de 100644
--- a/.gitignore
+++ b/.gitignore
@@ -49,4 +49,5 @@ arcane-devcli
# btca
.btca
-cli/arcane-cli
\ No newline at end of file
+cli/arcane-cli
+completions
\ No newline at end of file
diff --git a/.goreleaser.yaml b/.goreleaser.yaml
index cdfd0640a..662f71866 100644
--- a/.goreleaser.yaml
+++ b/.goreleaser.yaml
@@ -9,6 +9,10 @@ before:
hooks:
- just deps install all
- just build single frontend
+ - mkdir -p completions
+ - sh -c 'cd cli && go run . completion bash > ../completions/arcane-cli.bash'
+ - sh -c 'cd cli && go run . completion zsh > ../completions/arcane-cli.zsh'
+ - sh -c 'cd cli && go run . completion fish > ../completions/arcane-cli.fish'
builds:
- id: arcane
@@ -109,6 +113,13 @@ archives:
formats:
- tar.gz
name_template: '{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}'
+ files:
+ - src: completions/arcane-cli.bash
+ dst: completions/arcane-cli.bash
+ - src: completions/arcane-cli.zsh
+ dst: completions/arcane-cli.zsh
+ - src: completions/arcane-cli.fish
+ dst: completions/arcane-cli.fish
- id: default
ids:
- arcane
@@ -170,6 +181,16 @@ homebrew_casks:
- arcane-cli-archive
binaries:
- arcane-cli
+ completions:
+ bash: completions/arcane-cli.bash
+ zsh: completions/arcane-cli.zsh
+ fish: completions/arcane-cli.fish
+ hooks:
+ post:
+ install: |
+ if OS.mac?
+ system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/arcane-cli"]
+ end
description: 'Arcane CLI - Modern Docker Management, Designed for Everyone.'
homepage: 'https://getarcane.app'
skip_upload: '{{ if eq (index .Env "BUILD_NEXT") "true" }}true{{ end }}'