-
Install Dependencies & Sync Capacitor
npm installnpx cap sync
Run the development server:
npm start
- Build the React app:
npm run build - Sync Capacitor:
npx cap sync - Open the Android project in Android Studio:
npx cap open android
- Build the React app:
npm run build - Sync Capacitor:
npx cap sync - Open the iOS project in Xcode:
npx cap open ios
Run the Electron app in development mode (starts the React dev server and Electron together):
npm run electron-dev
Build your production React app and run it with Electron:
npm run electron-prod
To package your Electron app into an installer (using electron-builder):
- Build the production React app:
npm run build - Package the Electron app:
npm run dist
Note: The
npm run distcommand runs the production build and then uses electron-builder to package your app. The generated installer (e.g., the Windows NSIS.exe) will be located in therelease-buildsfolder. You can then attach this installer when publishing a release on GitHub.