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
335 stars 59 forks source link

Create DMG for Mac #162

Closed justinmoon closed 2 years ago

justinmoon commented 2 years ago

When I run npm run electron:pack in the electron directory that's created when I add this @capacitor-community/electron to my project, electron/dist/mac-arm64/<my-app-name>.app is created and runs when if I click on it in Finder.

How would I create a .dmg installer which would allow user to copy the app into their Applications folder which is the standard flow on MacOS?

jdgjsag67251 commented 2 years ago

In this case you would need to use npm run electron:make. This should create a .dmg file (if you have specified it in your electron-builder.config.json file). npm run electron:pack only builds the app but does not create platform packages.

justinmoon commented 2 years ago

OK thanks!