capacitor-community / electron

Deploy your Capacitor apps to Linux, Mac, and Windows desktops, with the Electron platform! 🖥️
https://capacitor-community.github.io/electron/
MIT License
318 stars 58 forks source link

How to build Mac / Windows Installable setup files?? #229

Closed Saqib92 closed 1 year ago

Saqib92 commented 1 year ago

How to create installer setup files for windows and Mac e.g setup.dmg and setup.exe.

Also i have tried using electron directly and it makes 3 gb folder as build. where as my Android and IOS is about 4 to 10 mb builds.

Saqib92 commented 1 year ago

Solved by using below commands:

ionic build --prod npx cap copy @capacitor-community/electron // capacitor.config.ts update webDir from www to app. cd electron npm run electron:make

These command should be added in documentation.