Remove standalone fetcher, add setup tool with install/uninstall workflow
All checks were successful
Release / build (push) Successful in 1m45s
All checks were successful
Release / build (push) Successful in 1m45s
Drop claude-fetcher binary and cron job — the widget's built-in BackgroundFetcher is the sole fetcher now. Add cmd/setup with cross-platform install and uninstall (--uninstall): kills widget, removes binaries + autostart, cleans Claude Code statusline setting, optionally removes config dir. Also includes: browser-based login (chromedp), ICO wrapper for Windows tray icon, and reduced icon size (64px). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -28,14 +28,14 @@ jobs:
|
||||
- name: Build Linux binaries
|
||||
run: |
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o claude-statusline ./cmd/statusline
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o claude-fetcher ./cmd/fetcher
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o claude-widget ./cmd/widget
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o setup ./cmd/setup
|
||||
|
||||
- name: Build Windows binaries
|
||||
run: |
|
||||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o claude-statusline.exe ./cmd/statusline
|
||||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o claude-fetcher.exe ./cmd/fetcher
|
||||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -trimpath -ldflags="-s -w -H=windowsgui" -o claude-widget.exe ./cmd/widget
|
||||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o setup.exe ./cmd/setup
|
||||
|
||||
- name: Build .deb package
|
||||
run: |
|
||||
@@ -45,17 +45,16 @@ jobs:
|
||||
- name: Create Linux tarball
|
||||
run: |
|
||||
mkdir -p dist/claude-statusline-${{ env.VERSION }}
|
||||
cp claude-statusline claude-fetcher claude-widget dist/claude-statusline-${{ env.VERSION }}/
|
||||
cp claude-statusline claude-widget setup dist/claude-statusline-${{ env.VERSION }}/
|
||||
cp README.md CHANGELOG.md dist/claude-statusline-${{ env.VERSION }}/
|
||||
cp packaging/linux/claude-widget.desktop dist/claude-statusline-${{ env.VERSION }}/
|
||||
cp packaging/linux/claude-statusline-fetch dist/claude-statusline-${{ env.VERSION }}/
|
||||
tar -czf claude-statusline_${{ env.VERSION }}_linux_amd64.tar.gz -C dist claude-statusline-${{ env.VERSION }}
|
||||
|
||||
- name: Create Windows zip
|
||||
run: |
|
||||
apt-get update -qq && apt-get install -y -qq zip >/dev/null 2>&1
|
||||
mkdir -p dist-win/claude-statusline-${{ env.VERSION }}
|
||||
cp claude-statusline.exe claude-fetcher.exe claude-widget.exe dist-win/claude-statusline-${{ env.VERSION }}/
|
||||
cp claude-statusline.exe claude-widget.exe setup.exe dist-win/claude-statusline-${{ env.VERSION }}/
|
||||
cp README.md CHANGELOG.md dist-win/claude-statusline-${{ env.VERSION }}/
|
||||
cd dist-win && zip -r ../claude-statusline_${{ env.VERSION }}_windows_amd64.zip claude-statusline-${{ env.VERSION }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user