dexploarer/plugin-electrobun-dev/electrobun-build
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 to "build electrobun app", "electrobun build", "electrobun canary", "electrobun stable", "set up code signing", "electrobun distribution", or is diagnosing electrobun build failures. Covers dev/canary/stable environments, all three platforms, toolchain prerequisites, artifact output, and CI/CD setup.
Install
npx vskill@latest install dexploarer/plugin-electrobun-dev/electrobun-buildSKILL.md
The same SKILL.md was published earlier as dexploarer/plugin-electrobun-dev/electrobun-build.
Electrobun Build
Builds a distributable app bundle and installer for the current platform using electrobun build.
Build Environments
| Environment | Command | Codesign | Updates | Patch gen | |
|---|---|---|---|---|---|
dev | electrobun dev | No | Disabled | No | |
canary | electrobun build --env=canary | Yes (if configured) | Enabled | Yes | |
stable | electrobun build --env=stable | Yes (if configured) | Enabled | Yes |
ELECTROBUN_BUILD_ENV is set automatically by the CLI and passed to postBuild scripts — you do not set it manually.
Platform Prerequisites
macOS (Intel + Apple Silicon)
Produces: .dmg installer + .app.tar.zst update tarball Toolchain: clang++ + make + install_name_tool (all from Xcode CLT) Architectures: arm64 (Apple Silicon), x64 (Intel) — build runs on matching host
Windows
- Visual Studio 2022 with component
Microsoft.VisualStudio.Component.VC.Tools.x86.x64 - cmake (available via VS installer or standalone)
The CLI uses vswhere.exe to find VS and vcvarsall.bat to configure the environment automatically.
Produces: .exe self-extracting installer (in a .zip) + .tar.zst update tarball Toolchain: cl.exe + link.exe via MSVC Architecture: x64 only
Linux
libfuse2 is required for AppImage creation.
Produces: .AppImage + .tar.zst update tarball Toolchain: g++ + make + pkg-config Architectures: x64, arm64
electrobun.config.ts — Build Options
General (build.*)
macOS (build.mac)
Windows (build.win)
Linux (build.linux)
Linux multi-view note: GTKWebKit is the default system webview. For apps with multiple views or needing consistent rendering,bundleCEF: trueis strongly recommended.
Code Signing (macOS)
Code signing runs automatically when build.mac.codesign: true and ELECTROBUN_DEVELOPER_ID is set. It only runs when buildEnvironment !== "dev", host OS is macOS, and target OS is macOS.
Signing Order
- CEF framework internals (if
bundleCEF: true) - CEF helper applications
- All
.dylibfiles and executables insideMacOS/recursively - The
launcherexecutable - The entire
.appbundle - The
.dmginstaller
Required Environment Variables
Notarization Sequence
.appbundle zippedxcrun notarytool submit --wait— blocks until Apple responds- On success:
xcrun stapler stapleattaches ticket to bundle .dmgcreated, then also code-signed and notarized
Artifact Output
All artifacts land in artifacts/ (or build.artifactFolder).
Naming Convention: {channel}-{os}-{arch}-{filename}
| Platform | Installer | Update Tarball | Manifest | |
|---|---|---|---|---|
| macOS stable arm64 | MyApp.dmg | stable-macos-arm64-MyApp.app.tar.zst | stable-macos-arm64-update.json | |
| macOS canary arm64 | MyApp-canary.dmg | canary-macos-arm64-MyApp-canary.app.tar.zst | canary-macos-arm64-update.json | |
| macOS stable x64 | MyApp.dmg | stable-macos-x64-MyApp.app.tar.zst | stable-macos-x64-update.json | |
| Windows stable x64 | MyApp-Setup.zip | stable-win-x64-MyApp.tar.zst | stable-win-x64-update.json | |
| Windows canary x64 | MyApp-Setup-canary.zip | canary-win-x64-MyApp-canary.tar.zst | canary-win-x64-update.json | |
| Linux stable x64 | MyApp-Setup.AppImage | stable-linux-x64-MyApp.tar.zst | stable-linux-x64-update.json | |
| Linux canary arm64 | MyApp-Setup-canary.AppImage | canary-linux-arm64-MyApp-canary.tar.zst | canary-linux-arm64-update.json |
Patch files: {channel}-{os}-{arch}-{fromHash}.patch (generated if previous tarball available)
update.json Contents
version.json Inside the App Bundle
Environment Variables Reference
Set by Electrobun CLI — passed to postBuild scripts
| Variable | Example | |
|---|---|---|
ELECTROBUN_BUILD_ENV | "dev" / "canary" / "stable" | |
ELECTROBUN_OS | "macos" / "win" / "linux" | |
ELECTROBUN_ARCH | "arm64" / "x64" | |
ELECTROBUN_BUILD_DIR | /abs/path/to/build/ | |
ELECTROBUN_APP_NAME | "MyApp" | |
ELECTROBUN_APP_VERSION | "1.0.0" | |
ELECTROBUN_APP_IDENTIFIER | "com.example.myapp" | |
ELECTROBUN_ARTIFACT_DIR | /abs/path/to/artifacts/ |
Set by you — version and runtime overrides
| Variable | Purpose | |
|---|---|---|
ELECTROBUN_CEF_VERSION | Override CEF version without editing config | |
ELECTROBUN_BUN_VERSION | Override Bun runtime version | |
ELECTROBUN_CONSOLE=1 | Force console output on Windows in production |
`ELECTROBUN_SKIP_CODESIGN` does not exist. Code signing is controlled byconfig.build.mac.codesignandbuildEnvironment.
GitHub Actions CI/CD Matrix
Official runners used by Electrobun's own release workflow:
Required GitHub Secrets
| Secret | Purpose | |
|---|---|---|
MACOS_CERTIFICATE | Base64-encoded .p12 certificate | |
MACOS_CERTIFICATE_PWD | Certificate password | |
ELECTROBUN_DEVELOPER_ID | Apple Developer ID string | |
ELECTROBUN_APPLEID | Apple ID email | |
ELECTROBUN_APPLEIDPASS | App-specific password | |
ELECTROBUN_TEAMID | Apple Team ID | |
R2_ENDPOINT | Cloudflare R2 endpoint URL | |
R2_ACCESS_KEY_ID | R2 access key | |
R2_SECRET_ACCESS_KEY | R2 secret key | |
R2_BUCKET | R2 bucket name | |
NODE_AUTH_TOKEN | npm publish token |
macOS Certificate Import Step
Common Build Failures
| Error | Cause | Fix | |
|---|---|---|---|
| View URL not found | Config key doesn't match src/ dir name | views: { mainview: ... } → URL must be mainview://index.html | |
| Blank window | Script tag points to .ts not compiled .js | Use index.js in HTML | |
| Codesign fails locally | Certificate not in keychain | Run security find-identity -v -p codesigning | |
| Notarization fails | Hardened runtime without JIT entitlement | Add com.apple.security.cs.allow-jit to entitlements.plist | |
| Linux AppImage won't run | FUSE missing | apt-get install fuse libfuse2 | |
| Windows MSVC not found | VS component missing | Install VC.Tools.x86.x64 component via VS Installer | |
| CEF build fails | cmake not installed | Install cmake for the platform | |
libwebgpu_dawn.dylib not found | bundleWGPU not set | Set build.mac.bundleWGPU: true in config | |
| WGPU GC crash after frames | FFI objects not pinned | Push all GPU objects to KEEPALIVE array |
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-build/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-build)