/package-commands
:::info This document covers the packaging and lifecycle commands for building distributable installers and managing native modules. For development commands (dev, build, preview), see [Development Commands](dev-commands.md). :::
$ npx -y skills add JNTMTMTM/eIsland --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/package-commands
Context preview
What this command does when you run it.
:::info This document covers the packaging and lifecycle commands for building distributable installers and managing native modules. For development commands (dev, build, preview), see [Development Commands](dev-commands.md). :::
Command definition
package-commands.mdtitle: Package Commands
icon: box-archive
Package Commands
:::info This document covers the packaging and lifecycle commands for building distributable installers and managing native modules. For development commands (dev, build, preview), see [Development Commands](dev-commands.md). :::
All commands are run from the `web/` directory:
cd web
npm run <script>
`npm run package`
Builds the application and packages it into a Windows NSIS installer.
npm run package
**Under the hood:**
1. electron-vite build → out/
2. electron-builder → dist/eIsland-{version}-Setup.exe**Output:** `dist/eIsland-{version}-Setup.exe`
:::warning This command requires **Visual Studio Build Tools 2022** with the "Desktop development with C++" workload and **.NET 10 SDK** for compiling native modules. See [Frontend Setup — Install Dependencies](/developer/environment-setup/frontend-setup.md#install-dependencies). :::
**When to use:**
- Local testing — verify the installer builds correctly on your machine
- Before a release — ensure the installer is functional
`postinstall`
Runs automatically after `npm install`. You should never run this manually.
# This runs automatically — do not invoke manually
npm run postinstall
**Under the hood:** `electron-builder install-app-deps`
**What it does:**
- Rebuilds native modules (e.g., `eisland-windows-smtc-helper`, `eisland-windows-fullscreen-detector`) for Electron's Node.js version
- Ensures native addons are ABI-compatible with the Electron runtime
:::warning If you see native module errors after `npm install`, the `postinstall` hook may have failed. Run `npx electron-builder install-app-deps` manually to rebuild. See [Frontend Setup — Native Module Errors](/developer/environment-setup/frontend-setup.md#native-module-errors). :::
Troubleshooting
`npm run package` Fails
**Missing build tools:**
:::warning `npm run package` requires Visual Studio Build Tools 2022 with the "Desktop development with C++" workload and .NET 10 SDK. See [Frontend Setup — Install Dependencies](/developer/environment-setup/frontend-setup.md#install-dependencies). :::
# Verify build tools are installed
# 1. Open Visual Studio Installer
# 2. Check "Desktop development with C++" workload is installed
# 3. Install .NET 10 SDK from https://dotnet.microsoft.com/download/dotnet/10.0
# Then retry
npm run package
Native Module Errors After `npm install`
# Rebuild native modules for Electron
npx electron-builder install-app-deps
Read more
title: Package Commands icon: box-archive
Package Commands
:::info This document covers the packaging and lifecycle commands for building distributable installers and managing native modules. For development commands (dev, build, preview), see [Development Commands](dev-commands.md). :::
All commands are run from the `web/` directory:
cd web npm run <script>
`npm run package`
Builds the application and packages it into a Windows NSIS installer.
npm run package
**Under the hood:**
1. electron-vite build → out/
2. electron-builder → dist/eIsland-{version}-Setup.exe**Output:** `dist/eIsland-{version}-Setup.exe`
:::warning This command requires **Visual Studio Build Tools 2022** with the "Desktop development with C++" workload and **.NET 10 SDK** for compiling native modules. See [Frontend Setup — Install Dependencies](/developer/environment-setup/frontend-setup.md#install-dependencies). :::
**When to use:**
- Local testing — verify the installer builds correctly on your machine
- Before a release — ensure the installer is functional
`postinstall`
Runs automatically after `npm install`. You should never run this manually.
# This runs automatically — do not invoke manually npm run postinstall
**Under the hood:** `electron-builder install-app-deps`
**What it does:**
- Rebuilds native modules (e.g., `eisland-windows-smtc-helper`, `eisland-windows-fullscreen-detector`) for Electron's Node.js version
- Ensures native addons are ABI-compatible with the Electron runtime
:::warning If you see native module errors after `npm install`, the `postinstall` hook may have failed. Run `npx electron-builder install-app-deps` manually to rebuild. See [Frontend Setup — Native Module Errors](/developer/environment-setup/frontend-setup.md#native-module-errors). :::
Troubleshooting
`npm run package` Fails
**Missing build tools:**
:::warning `npm run package` requires Visual Studio Build Tools 2022 with the "Desktop development with C++" workload and .NET 10 SDK. See [Frontend Setup — Install Dependencies](/developer/environment-setup/frontend-setup.md#install-dependencies). :::
# Verify build tools are installed # 1. Open Visual Studio Installer # 2. Check "Desktop development with C++" workload is installed # 3. Install .NET 10 SDK from https://dotnet.microsoft.com/download/dotnet/10.0 # Then retry npm run package
Native Module Errors After `npm install`
# Rebuild native modules for Electron npx electron-builder install-app-deps
eIsland - A sleek, Apple Dynamic Island inspired floating widget for Windows, built with Electron.
Repo: JNTMTMTM/eIsland
Other commands on eisland.
- /dev-commands
:::info This document covers the core development commands for building, running, and previewing the eIsland application. For environment setup and prerequisites, see [Frontend Setup](/developer/environment-setup/frontend-setup.md). :::
Open command - /esa-commands
:::info This document covers the ESA (Edge Security Acceleration) CDN cache purge commands for clearing cached content on Alibaba Cloud ESA. These commands use the official `@alicloud/esa20240910` SDK. :::
Open command - /plugin-commands
:::info This document covers all build, test, and smoke commands for eIsland native plugins. Each plugin lives under `plugins/` and has its own `package.json` with independent scripts. :::
Open command - /quality-commands
:::info This document covers the code quality commands for validating comment standards and i18n completeness in the eIsland frontend. :::
Open command - /release-commands
:::info This document covers the release and changelog commands for publishing eIsland builds and generating release notes. For packaging the installer locally, see [Package Commands](package-commands.md). :::
Open command - /test-commands
:::info This document covers the testing commands for running, filtering, and measuring test coverage in the eIsland frontend. :::
Open command

