electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.73k stars 1.74k forks source link

After changing the name of the Mac application, the application with the new name cannot be automatically restarted after automatically detecting and upgrading and downloading the new version #8444

Open hhfg opened 3 months ago

hhfg commented 3 months ago

"electron-builder": "23.3.3", "electron-updater": "5.2.3", Does the appupdater.quitandinstall method support launching an application with a new name? There is a Mac application named A, and version 1.0.1 already exists. After changing its name to B, the automatic detection and upgrade can detect the new version 1.0.2 and download it, but it cannot be launched by itself. Why?

mmaietta commented 3 months ago

I think this is a limitation of electron itself as electron-updater simply forwards the quitAndInstall command to electron's native updater. Best guess is that the native updater restart logic assumes the same filename?