Development Commands
Development Commands
Run application commands from the repository root, where the application package.json lives. The desktop runtime is Tauri with a React renderer in WebView2. Rust implements the native services.
First setup
Windows x64 requires Node.js 24.22.1, Rust with the MSVC toolchain, Visual Studio 2022 C++ build tools, and WebView2.
npm ci --ignore-scripts
npm ci --prefix cli --ignore-scripts
npm run plugins:buildplugins:build prepares FFmpeg and ffprobe in src-tauri/resources/native/ for the target architecture. First setup downloads missing binaries. Development and direct Tauri builds consume these resources.
Start the desktop application
npm run devTauri runs npm run dev:web, starts Vite at http://localhost:1420, compiles the Rust host and opens the desktop windows. React edits use Fast Refresh; Rust edits rebuild the host. Native plugin changes require the separate preparation command.
npm run dev:web starts only the renderer server. Native desktop APIs require the Tauri host.
Build and run production pages
npm run buildThis runs tauri build --no-bundle: Vite writes out/renderer/, and Cargo builds the native executable without creating an installer. With the default Cargo target directory, the executable is src-tauri/target/release/eisland.exe.
Run that executable directly to inspect the embedded production pages. npm run preview starts Tauri with host watching disabled and uses the renderer development server.
npm run build:web # Renderer assets only
npx tauri build # Native application and NSIS installer; resources must be prepared
npm run package # Prepare native resources, then build the application and installerSee Package Commands for installer outputs and Release Commands for uploading an existing build.
Native tests
npm run test:api
npm run test:rust
npm run build:e2e
npm run test:e2e # Real WebView2, music, AI and native service testsThe desktop tests use isolated data directories. Set EISLAND_SMOKE_BINARY when the executable is outside the default debug target directory. A direct Cargo build used for these tests must enable the custom-protocol feature so it embeds the production pages.
Troubleshooting
- If port 1420 is occupied, inspect
netstat -ano | findstr :1420and stop the development process that owns it before restarting. - If native resources are missing, run
npm run plugins:build; its first run may download FFmpeg. - If Cargo cannot link, check the MSVC toolchain and the Visual Studio C++ workload. A renderer-only build does not validate the Rust executable or bundled media binaries.
CARGO_TARGET_DIRcan relocate Cargo output. UpdateEISLAND_SMOKE_BINARYto the resulting executable path when running desktop tests.
Changelog
227d8-on

