electron-builder
electron-builder copied to clipboard
myApp.app doesn't move to Applications folder after changing to universal build
- Electron-Builder Version: 24.9.1
- Node Version: 18.18.2
- Electron Version: 28.1.0
- Target: pkg universal build
Hi everyone, I switched my build to be universal, and now as part of the installation process myApp.app doesn't move to Applications folder as expected, which causes the installation to fail, since I rely on that in the postinstall script. Everything worked properly before I changed to universal build, and now it fails. If I copy the myApp.app to Applications manually and then run the .pkg installer, everything works as expected. I checked and "installLocation": "/Applications" is configured this way in my json configuration file under "pkg". Am I missing something important here?
Thanks
I saw an old issue saying that if you have another myApp.app on your device, myApp.app will not move to /Applications folder. I saw that issue before opening this one, I must have missed that myApp.app on my device. Removing it and then trying to install again fixed the issue for me.