- Notifications
You must be signed in to change notification settings - Fork 0
Windows support groundwork (#77)#1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
bc1d540df6fd5cf3de4abdc88be46735290d55c20b29e53957217db4672a781828edf914a2e6b12d1c853f6f44d3e8e3b76ca4794abe3f248467d87ae4445bFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,134 @@ | ||
| # Owner Guide: Windows Release Setup | ||
| Generate Windows certificate from your Mac, add GitHub secrets, push a tag. | ||
| ## 1. Generate Windows Certificate | ||
| Install OpenSSL if not present: | ||
| ```bash | ||
| brew install openssl | ||
| ``` | ||
| Create certificate: | ||
| ```bash | ||
| # Create private key | ||
| openssl genrsa -out windows.key 4096 | ||
| # Create certificate | ||
| openssl req -new -x509 -key windows.key -out windows.crt -days 365 \ | ||
| -subj "/CN=Sunstory/O=Sunstory/C=US" | ||
| # Convert to PFX | ||
| openssl pkcs12 -export -out codesign.pfx -inkey windows.key -in windows.crt | ||
| # Enter password when prompted (save this!) | ||
| ``` | ||
| For production: Buy a certificate from DigiCert/Sectigo instead. | ||
| ## 2. Encode for GitHub Secrets | ||
| ```bash | ||
| # Base64 encode | ||
| cat codesign.pfx | base64 > cert_base64.txt | ||
| # Copy to clipboard (macOS) | ||
| cat cert_base64.txt | pbcopy | ||
| # Cleanup sensitive files | ||
| rm windows.key windows.crt codesign.pfx | ||
| ``` | ||
| ## 3. Add GitHub Secrets | ||
| Go to: `https://github.com/robinebers/openusage/settings/secrets/actions` | ||
| Add: | ||
| | Secret | Value | | ||
| |--------|-------| | ||
| | `WINDOWS_CERTIFICATE` | Paste from clipboard (base64) | | ||
| | `WINDOWS_CERTIFICATE_PASSWORD` | Password from step 1 | | ||
| ## 4. Update Versions | ||
| Set same version in all 3 files: | ||
| ```bash | ||
| # Check current | ||
| grep '"version"' package.json src-tauri/tauri.conf.json | ||
| grep '^version' src-tauri/Cargo.toml | ||
| # Edit files (use your editor) | ||
| cursor src-tauri/tauri.conf.json # "version": "0.6.4" | ||
| cursor src-tauri/Cargo.toml # version = "0.6.4" | ||
| cursor package.json # "version": "0.6.4" | ||
| ``` | ||
| ## 5. Create Release | ||
| ```bash | ||
| # Commit | ||
| git add src-tauri/tauri.conf.json src-tauri/Cargo.toml package.json | ||
| git commit -m "chore: release v0.6.4" | ||
| # Push | ||
| git push origin main | ||
| # Tag | ||
| git tag v0.6.4 | ||
| git push origin v0.6.4 | ||
| ``` | ||
| ## 6. Monitor Build | ||
| ```bash | ||
| # Watch workflow | ||
| gh run watch | ||
| # Or open browser | ||
| open "https://github.com/robinebers/openusage/actions" | ||
| ``` | ||
| ## 7. Verify | ||
| ```bash | ||
| # Check release assets | ||
| gh release view v0.6.4 | ||
| ``` | ||
| Should have: | ||
| - `OpenUsage_0.6.4_aarch64.dmg` | ||
| - `OpenUsage_0.6.4_x64.dmg` | ||
| - `OpenUsage_0.6.4_x64_en-US.msi` (Windows) | ||
| - `OpenUsage_0.6.4_x64-setup.exe` (Windows) | ||
| - `latest.json` | ||
| ## Troubleshooting | ||
| **Missing WINDOWS_CERTIFICATE** | ||
| - Check secret exists in GitHub → Settings → Secrets | ||
| **Version mismatch** | ||
| - All 3 files must have same version number | ||
| **No Windows assets** | ||
| - Check workflow logs for Windows build errors | ||
| - Verify `WINDOWS_CERTIFICATE_PASSWORD` is correct | ||
| ## Commands Reference | ||
| ```bash | ||
| # Check versions | ||
| grep -h version package.json src-tauri/tauri.conf.json src-tauri/Cargo.toml | ||
| # List releases | ||
| gh release list | ||
| # View workflow runs | ||
| gh run list --workflow=publish.yml | ||
| # Check specific run | ||
| gh run view <run-id> | ||
| ``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # Breadcrumbs | ||
| ## 2026-02-09 | ||
| - Windows dev: align AppState plugin/probe types with LoadedPlugin + PluginOutput, and persist arrow offset for tray alignment fallback. | ||
| - Arrow alignment: account for panel horizontal padding when positioning tray arrow. | ||
| - Side taskbar: compute arrow offset on Y axis and render left/right arrows. | ||
| - Side taskbar: use work area bounds to avoid overlapping the taskbar. | ||
| - Windows plugin scan: identified OS path/keychain blockers per plugin. | ||
| - Windows plugins: add Windows path candidates for Codex/Claude/Cursor/Windsurf and guard keychain usage to macOS. | ||
| - Windows OS gating: enable windows in plugin manifests and add actionable missing-path errors for testers. | ||
| - Cleanup: moved `WINDOWS_CHANGES.md` and reserved `nul` file to trash; kept `src/contexts/taskbar-context.tsx` for later wiring. | ||
| - Windows updater: documented that production updates require Authenticode signing; marked current state as test-only. | ||
| - Windows signing: added conditional PFX import step and owner follow-up checklist. | ||
| - Cleanup: removed unused `src/contexts/taskbar-context.tsx`. | ||
| - PR 77 fixes: re-enabled tray icon updates, restored Linux tray click handling, guarded window clamp, and replaced env-based Windows probes with `~`-based paths under a CODEX_HOME-only allowlist. | ||
| ## 2026-02-10 | ||
| - Switched plugin host sqlite to embedded `rusqlite` with bundled SQLite for cross-platform availability. | ||
| - Replaced Windows process discovery `wmic` with PowerShell CIM JSON parsing in `src-tauri/src/plugin_engine/host_api.rs`. | ||
| - Added Windows DPAPI-backed `host.vault` and updated Copilot auth to use it. | ||
| - Enforced Windows signing secrets in publish workflow to prevent unsigned releases. | ||
| - Adjusted dynamic tray icon rendering to stay visible on dark Windows taskbars. | ||
| - Restored Linux placeholders for tray positioning and plugin availability. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 CI workflow uses non-existent GitHub Action
dtolnay/rust-actionThe CI workflow references
dtolnay/rust-action@stablewhich does not exist. The correct action name isdtolnay/rust-toolchain@stable, as correctly used in the publish workflow at.github/workflows/publish.yml:37.Impact
The CI workflow will fail on every PR for both ubuntu-latest and windows-latest matrix entries because the
Install Rust toolchainstep will fail to find the action. This blocks all CI checks.Was this helpful? React with 👍 or 👎 to provide feedback.