From electrobun-dev
Guided Electrobun build command — selects environment, verifies signing credentials, runs the build, and summarizes artifacts produced.
How this command is triggered — by the user, by Claude, or both
Slash command
/electrobun-dev:electrobun-buildThe summary Claude sees in its command listing — used to decide when to auto-load this command
Run a guided Electrobun build. ## Steps 1. **Ask which environment:** - A) `dev` — quick local build, no signing, no artifacts - B) `canary` — release build for internal testing: sign + notarize + DMG + patch - C) `stable` — production release build 2. **For canary or stable — verify signing env vars:** If any are missing: - `ELECTROBUN_DEVELOPER_ID`: run `security find-identity -v -p codesigning` to find it - `ELECTROBUN_APPLEID`: your Apple Developer account email - `ELECTROBUN_APPLEIDPASS`: generate at https://appleid.apple.com → App-Specific Passwords - ...
Run a guided Electrobun build.
Ask which environment:
dev — quick local build, no signing, no artifactscanary — release build for internal testing: sign + notarize + DMG + patchstable — production release buildFor canary or stable — verify signing env vars:
echo "DEVELOPER_ID: ${ELECTROBUN_DEVELOPER_ID:-❌ NOT SET}"
echo "APPLE_ID: ${ELECTROBUN_APPLEID:-❌ NOT SET}"
echo "APPLE_PASS: ${ELECTROBUN_APPLEIDPASS:-❌ NOT SET}"
echo "TEAM_ID: ${ELECTROBUN_TEAMID:-❌ NOT SET}"
If any are missing:
ELECTROBUN_DEVELOPER_ID: run security find-identity -v -p codesigning to find itELECTROBUN_APPLEID: your Apple Developer account emailELECTROBUN_APPLEIDPASS: generate at https://appleid.apple.com → App-Specific PasswordsELECTROBUN_TEAMID: visible in your Developer ID string in parenthesesOffer to skip signing: "Want to skip signing and test the rest of the build pipeline? (ELECTROBUN_SKIP_CODESIGN=1)"
Read app.version from electrobun.config.ts and confirm it's correct for this release. If doing canary/stable, ask if they want to bump it first.
Run the build:
electrobun build --env=<env>
Stream output to the user.
On completion, summarize artifacts:
artifacts/ with file sizesupdate.json is present and show its version and url fields/electrobun-release to upload and distribute"On failure, diagnose the error:
build.bun.entrypoint pathbuild.mac.icons pathELECTROBUN_SKIP_CODESIGN=1npx claudepluginhub dexploarer/plugin-electrobun-dev --plugin electrobun-dev/release-buildBuilds a signed release APK or Android App Bundle with ProGuard/R8 optimization, lint checks, and test execution. Also supports uploading ProGuard mapping files.