Summary
Integrate Sentry SDK for error tracking in both main and renderer processes, with automatic source map upload during CI builds.
Changes
- Add
@sentry/electron for error capture in main and renderer processes
- Add
@sentry/vite-plugin for automatic source map upload during production builds
- Configure
electron.vite.config.ts with hidden source maps and Sentry plugin (CI-only)
- Add Sentry environment variables to CI build workflow (
_build-reusable.yml)
- DSN injected via
SENTRY_DSN env var (not hardcoded, safe for open-source)
GitHub Secrets Required
| Secret |
Purpose |
SENTRY_DSN |
Client DSN for error reporting |
SENTRY_AUTH_TOKEN |
Organization token for source map upload |
SENTRY_ORG |
Sentry organization slug |
SENTRY_PROJECT |
Sentry project slug |