More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    electron-builder + Vite Packaging Fix

    1

    Your Electron zip is 400MB because electron-builder is packing its own previous output. Fix it with one config change.

    $4.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    electron-builder + Vite Packaging Fix

    electron-builder + Vite Packaging Fix

    Example session with this skill installed

    My Electron app is built with Vite and electron-builder. The mac zip is 480MB and a tester on an Intel Mac says it won't open. Can you fix the build config?

    • Read your context and instructions
    • Compiled the electron-builder + vite

    Two separate problems, one config change.

    1. The 480MB zip

    electron-builder writes to dist/ by default, and so does Vite. Your build.files includes "dist/**/*", so every build packs the
    previous build's zips and unpacked apps into app.asar. Nothing errors; it just keeps growing.

    electron-builder targets the host architecture. On an Apple Silicon Mac that means an arm64-only app.

    Fix

    "build": {
      "directories": { "output": "release" },
      "files": ["dist/**/*", "dist-electron/**/*", "!node_modules/**"],
      "mac": { "target": [{ "target": "zip", "arch": ["universal"] }], "artifactName": "App-macOS.${ext}" },
      "win": { "target": [{ "target": "zip", "arch": ["x64"] }], "artifactName": "App-Windows.${ext}" }
    }
    

    Add release/ to .gitignore, delete the old artifacts in dist/, and rebuild.

    Verify

    unzip -l release/App-macOS.zip | grep -E "app\.asar$|\.zip$"
    ditto -x -k release/App-macOS.zip /tmp/t && lipo -archs "/tmp/t/App.app/Contents/MacOS/App"
    codesign --verify --deep --strict "/tmp/t/App.app"
    

    Expect a small asar with no nested zip, x86_64 arm64, and codesign exiting 0.

    Note for your store page

    Without an Apple Developer ID the app is ad-hoc signed. Buyers need System Settings > Privacy & Security > Open Anyway on first launch,
    so say that on your download page.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    electron-builder writes to dist/ by default, and so does Vite. If build.files includes "dist/**/*", every build packs the previous build's artifacts into app.asar. Nothing errors; the package just keeps growing. In the real case behind this skill, 433MB and 489MB zips became a 203MB universal macOS build and a 138MB Windows x64 build.

    What your agent does with it:

    • Recognises the symptoms: a huge app.asar, zips nested inside the mac zip, Intel Macs that never open the app.
    • Applies a working build config: a separate release/ output, a universal macOS target, and a Windows x64 zip built on macOS without wine.
    • Explains ad-hoc signing without an Apple Developer ID, and what buyers will see in Gatekeeper.
    • Verifies the result with five commands: asar size, architectures, codesign, asar contents and a launch check.

    What's inside: one SKILL.md. It changes only electron-builder configuration and ships no scripts.

    Compatibility: plain SKILL.md, no scripts. Your agent needs a shell to edit package.json, run the build and run the checks; the checks use macOS tools (ditto, lipo, codesign) and npx. Written from a real build with electron-builder 26 and Vite on an Apple Silicon Mac.

    Covers electron-builder with Vite and zip targets for macOS and Windows. It does not cover notarization with an Apple Developer ID, DMG or installer targets, Linux builds, or auto-update. !node_modules/** is safe only when Vite bundles every renderer dependency and the main process imports nothing beyond electron and Node built-ins. Written against electron-builder 26.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 29 days ago

    Requires

    macOS
    Node.js
    asar

    Permissions

    Terminal / Shell
    Write Files
    Read Files
    Network Access

    File Scopes

    package.json
    .gitignore
    dist/**
    release/**

    Edits package.json and .gitignore, then runs electron-builder and read-only checks (unzip, ditto, lipo, codesign, npx asar). Network use is limited to package downloads: electron-builder fetches Electron binaries for the x64 and Windows targets, and npx may fetch the asar CLI on first run. The skill sends no data anywhere and reads no environment variables.

    Listed29 days ago

    What's inside

    Frequently Asked Questions

    If electron-builder and Vite both write to dist/ and build.files includes dist/**, each build packs the previous build's artifacts into app.asar. The skill moves builder output to release/ and shows how to confirm the asar is small again.

    electron-builder targets the host architecture, so a build on Apple Silicon is arm64-only. The skill switches the mac target to universal and checks both architectures with lipo.

    No. Without one the app is ad-hoc signed and launches, but buyers must approve it once in System Settings > Privacy & Security. Notarization is not covered.

    Yes. The Windows x64 zip target builds on macOS without wine with electron-builder 26.

    One SKILL.md with the symptoms, the build config, signing notes and five verification commands. No scripts

    New in Frontend & Web Apps