Skip to content

Commit 3282e98

Browse files
jackspirouclaude
andcommitted
chore: Clean up release artifacts and add uninstall-completions
- Remove binary_signs to eliminate confusing 119-byte signature files - Add make uninstall-completions command for cleaning up shell completions - Add completions/ and manpages/ to .gitignore (generated during build) - Update Docker labels to use template variables - Update README files with generated documentation The release now includes only essential artifacts: - Archive files with binaries (.tar.gz, .zip) - checksums.txt with GPG signature - SBOM files for security scanning 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 6f25525 commit 3282e98

15 files changed

Lines changed: 1541 additions & 2837 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ starmap.darwin
3939
starmap.linux
4040
starmap.windows
4141
dist/
42+
completions/
43+
manpages/
4244
build/
4345
bin/
4446

.goreleaser.yaml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@ dockers_v2:
181181
build_args:
182182
BUILDKIT_INLINE_CACHE: "1"
183183
labels:
184+
org.opencontainers.image.name: "{{.ProjectName}}"
185+
org.opencontainers.image.description: "AI Model Catalog System"
184186
org.opencontainers.image.created: "{{.Date}}"
185-
org.opencontainers.image.title: "{{.ProjectName}}"
186187
org.opencontainers.image.revision: "{{.FullCommit}}"
187188
org.opencontainers.image.version: "{{.Version}}"
188-
org.opencontainers.image.source: "https://github.com/agentstation/starmap"
189-
org.opencontainers.image.description: "AI Model Catalog System"
189+
org.opencontainers.image.source: "{{.GitURL}}"
190190
org.opencontainers.image.licenses: "AGPL-3.0"
191191

192192
# Homebrew Cask
@@ -267,18 +267,22 @@ signs:
267267
- "${artifact}"
268268
artifacts: checksum
269269

270-
# Binary signing (requires signing key setup)
271-
binary_signs:
272-
- cmd: gpg
273-
args:
274-
- "--batch"
275-
- "--yes"
276-
- "--pinentry-mode"
277-
- "loopback"
278-
- "--passphrase"
279-
- "{{ .Env.GPG_PASSPHRASE }}"
280-
- "--output"
281-
- "${signature}"
282-
- "--detach-sig"
283-
- "${artifact}"
284-
artifacts: binary
270+
# Binary signing disabled - checksums.txt signing provides sufficient verification
271+
# Individual binary signatures add confusion without significant security benefit
272+
# since binaries are already distributed in archives with signed checksums.
273+
# Uncomment below to sign individual binaries if needed:
274+
# binary_signs:
275+
# - signature: "${artifact}.sig"
276+
# cmd: gpg
277+
# args:
278+
# - "--batch"
279+
# - "--yes"
280+
# - "--pinentry-mode"
281+
# - "loopback"
282+
# - "--passphrase"
283+
# - "{{ .Env.GPG_PASSPHRASE }}"
284+
# - "--output"
285+
# - "${signature}"
286+
# - "--detach-sig"
287+
# - "${artifact}"
288+
# artifacts: binary

Makefile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,37 @@ uninstall: ## Uninstall the binary from GOPATH/bin
9797
echo "$(YELLOW)$(BINARY_NAME) not found in $$GOPATH_BIN$(NC)"; \
9898
fi
9999
@echo "$(BLUE)Also removing shell completions if installed...$(NC)"
100+
@$(MAKE) uninstall-completions
101+
102+
uninstall-completions: ## Remove all starmap shell completions
103+
@echo "$(BLUE)Removing starmap shell completions...$(NC)"
104+
@# Homebrew completions
105+
@if [ -f "/opt/homebrew/etc/bash_completion.d/starmap" ]; then \
106+
rm -f "/opt/homebrew/etc/bash_completion.d/starmap"; \
107+
echo "$(GREEN)✅ Removed Homebrew bash completion$(NC)"; \
108+
fi
109+
@if [ -f "/opt/homebrew/share/zsh/site-functions/_starmap" ]; then \
110+
rm -f "/opt/homebrew/share/zsh/site-functions/_starmap"; \
111+
echo "$(GREEN)✅ Removed Homebrew zsh completion$(NC)"; \
112+
fi
113+
@if [ -f "/opt/homebrew/share/fish/vendor_completions.d/starmap.fish" ]; then \
114+
rm -f "/opt/homebrew/share/fish/vendor_completions.d/starmap.fish"; \
115+
echo "$(GREEN)✅ Removed Homebrew fish completion$(NC)"; \
116+
fi
117+
@# Linux standard locations
118+
@if [ -f "/usr/local/etc/bash_completion.d/starmap" ]; then \
119+
rm -f "/usr/local/etc/bash_completion.d/starmap"; \
120+
echo "$(GREEN)✅ Removed Linux bash completion$(NC)"; \
121+
fi
122+
@if [ -f "/usr/local/share/zsh/site-functions/_starmap" ]; then \
123+
rm -f "/usr/local/share/zsh/site-functions/_starmap"; \
124+
echo "$(GREEN)✅ Removed Linux zsh completion$(NC)"; \
125+
fi
126+
@if [ -f "/usr/local/share/fish/vendor_completions.d/starmap.fish" ]; then \
127+
rm -f "/usr/local/share/fish/vendor_completions.d/starmap.fish"; \
128+
echo "$(GREEN)✅ Removed Linux fish completion$(NC)"; \
129+
fi
130+
@echo "$(GREEN)Shell completions cleanup complete$(NC)"
100131
@if command -v starmap >/dev/null 2>&1; then \
101132
starmap uninstall completion 2>/dev/null || echo "$(YELLOW)⚠️ Some completions may not have been removed$(NC)"; \
102133
else \

0 commit comments

Comments
 (0)