dexploarer/plugin-electrobun-dev/electrobun-platform
Claude Code and agent skill by dexploarer/plugin-electrobun-dev
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks about cross-platform electrobun support, "electrobun Linux", "electrobun Windows", CEF requirements by platform, "electrobun platform differences", or is setting up multi-platform CI for an electrobun app.
Install
npx vskill@latest install dexploarer/plugin-electrobun-dev/electrobun-platformSKILL.md
The same SKILL.md was published earlier as dexploarer/plugin-electrobun-dev/electrobun-platform.
Electrobun Cross-Platform Reference
Platform Support Matrix
| Platform | OS value | Arch | Status | Default Webview | |
|---|---|---|---|---|---|
| macOS ARM64 | macos | arm64 | Stable | WKWebView | |
| macOS Intel | macos | x64 | Stable | WKWebView | |
| Windows x64 | win | x64 | Stable | WebView2 (Edge) | |
| Windows ARM64 | win | arm64 | Via emulation | Runs x64 binary | |
| Linux x64 | linux | x64 | Stable | GTKWebKit | |
| Linux ARM64 | linux | arm64 | Stable | GTKWebKit |
Build each platform on its native OS — no cross-compilation.
Linux — Always Bundle CEF
GTKWebKit has severe limitations:
- No webview layering (no overlapping webviews)
- No masking
- No `<electrobun-webview>` compositing
- Renderer mixing not supported — all webviews must use same renderer
For anything beyond a single-webview app on Linux:
Windows — Console Output
Production Windows builds use the GUI subsystem — no console for end users.
Has no effect on macOS or Linux. Dev builds auto-attach a console.
Webview Hidden/Passthrough Behavior
<electrobun-webview> HTML Tag (OOPIF)
Process-isolated "super iframes" — positioned by DOM, rendered natively. Requires CEF on Linux.
Access from bun: BrowserView.getAll() includes OOPIFs.
CEF Version Override
Same major = safe. Adjacent major = usually fine. Distant majors = higher risk.
Chromium Flags (CEF only)
Per-Window Renderer Override
Mixing allowed on macOS and Windows. Not allowed on Linux.
Events API
Quit trigger sources: dock icon, Cmd+Q, Ctrl+C, SIGTERM, window close, Utils.quit(), process.exit() — all route through before-quit.
Linux caveat: system-initiated quit paths (window-manager close, taskbar) may bypass before-quit. Utils.quit() and process.exit() are reliable.
URL Schemes / Deep Linking
macOS only. App must be in /Applications or ~/Applications.
Windows/Linux URL schemes not yet supported.
Security Checklist
sandbox: trueon any BrowserView loading untrusted URLs — disables RPC, events still worksetNavigationRulesto allowlist permitted navigation targets; last match wins- Never expose
electrobun/bunAPIs to sandboxed views — route through RPC with validation - Use separate
partitionvalues per account for session isolation - Prefer
views://overfile://for local assets
Code Signing (macOS)
One-Time Setup
- Install full Xcode from App Store (not CLI tools alone — avoids expired cert issues)
- Xcode → Settings → Accounts → add Apple ID → Manage Certificates →
+→ Developer ID Application - Apple Developer Portal: Identifiers → register bundle ID
- account.apple.com: App Specific Passwords → create one
Required Env Vars
Unsigned apps show "damaged and can't be opened" — users fix with:
Entitlements
Application Icons
Reuse PNGs from the macOS iconset for Windows/Linux — no separate files needed.
Artifact Naming Convention
Artifacts use {channel}-{os}-{arch}- prefix. Stable omits the channel. App name spaces stripped.
Keep old patches on your static host — users >1 version behind auto-fall back to full .tar.zst.
Release Hosting
Static file host — no server required: S3, Cloudflare R2, GCS, GitHub Releases.
GitHub Releases limitation: /releases/latest/download skips prereleases. Stable works; canary auto-updates will NOT — use R2/S3 for canary channel.
CI Build Matrix (GitHub Actions)
Each platform must build on its own native runner:
Tag naming convention: tags containing -canary → canary build; all others → stable.
ASAR Packaging
Packs app resources into app.asar. Unpacked files → app.asar.unpacked/. Benefits: faster I/O, code obfuscation via randomized temp paths.
Common Pitfalls
| Issue | Fix | |
|---|---|---|
| Linux webview layering broken | bundleCEF: true + defaultRenderer: 'cef' | |
| Canary auto-update not working | GitHub /releases/latest skips prereleases — use R2/S3 | |
| "damaged and can't be opened" macOS | Enable codesign + notarize, or xattr -cr for testing | |
| Code signing cert errors | Install full Xcode from App Store, not just CLI tools | |
| RPC type mismatch at runtime | Confirm shared type file is imported by both sides | |
| Sandbox webview + RPC silent failure | sandbox: true disables RPC — use events or remove sandbox | |
| Windows no console output | Set ELECTROBUN_CONSOLE=1 env var | |
| URL schemes not registering | App must be in /Applications, macOS only | |
| Cross-compilation attempt | Each platform must build on its own native OS | |
| Linux renderer mixing | All webviews must use the same renderer on Linux | |
| Old patches missing | Keep all patch files on static host for sequential upgrades | |
before-quit not firing on Linux | System-initiated quits may bypass it; Utils.quit() is reliable | |
| Notarize + codesign disabled for speed | Turn off during rapid debug cycles, re-enable for release |
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/electrobun-platform/SKILL.md
Popularity
- Repository stars
- 5
- Repository forks
- 1
- 7-day trend score
- 9
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dexploarer/plugin-electrobun-dev/electrobun-platform)