Electron wrapper that packages and runs a Microcks Spring Boot JAR locally and presents it in a native desktop window.
- Node.js 18+
- Java Runtime (JRE 17+) installed OR include a bundled JRE in
jre/before packaging. - A Microcks Spring Boot JAR.
- Copy your Microcks JAR into
backend/(e.g.backend/microcks.jar). - Optionally set environment in
.env(see.env.example). - Install dependencies and start.
npm run dev– TypeScript watch + Electron.npm run start– Build once and start Electron.npm run pack– Prepare unpacked app.npm run dist– Build Windows installer (NSIS).
npm install
npm run devIf you don't have Java on PATH, set JAVA_HOME in .env or add a jre/ folder.
Default Spring profile is uber. Set MICROCKS_PROFILE in .env to override.
Place backend/*.jar and optionally jre/** before running:
npm run distInstaller will include those under resources.
- Windows builds: NSIS installer by default.
- macOS builds: dmg and zip. Codesigning/notarization are required to distribute broadly.
- Linux builds: AppImage, deb, rpm.
- Bundled JRE: put a platform-specific JRE in
jre/before building. The build will markjre/bin/javaexecutable on macOS/Linux automatically. - Icons: If you want custom icons, add
build/icon.ico(Windows),build/icon.icns(macOS), and common PNGs for Linux. Avoid empty placeholder files—builder will fail converting them.
- Backend fails to start: check logs under
%AppData%/Microcks Desktop/logs. - Port already in use (8080): set
PORTin.env. - Health endpoint defaults to
/api/health. Override withHEALTH_PATHin.env.
Apache-2.0