You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
We have an Electron app and are migrating from electron-updater to squirrel.windows. During the upgrade process, we encountered an issue where the app becomes unable to launch from the desktop shortcut if it exits during the upgrade process. After investigating the upgrade mechanism of squirrel, we found that Stubexe calculates and concatenates a path pointing to the latest MyApp.exe.
However, it was observed that when the app interrupts and exits during the apply releases process, the app-latestVersion directory might be created, but some files inside it could be missing. Consequently, this causes Stubexe to fail to launch MyApp.
I have submitted a PR to fix the problem. My thought is to create a temp-app-xxxx directory during the apply releases process and install the new version there. After the installation is completed, rename the temp-app-xxxx directory to the final app-xxxx directory.
Steps to recreate
Launch a squirrel.windows-based electron app
After the app download the updates, quit the app when it is applying for releases
Click the shortcut on the Desktop to launch the app
Expected behavior
The app should be able to launch.
Actual behavior
The app has no response.
Additional information
None
The text was updated successfully, but these errors were encountered:
Squirrel version(s)
2.0.1
Description
We have an Electron app and are migrating from electron-updater to squirrel.windows. During the upgrade process, we encountered an issue where the app becomes unable to launch from the desktop shortcut if it exits during the upgrade process. After investigating the upgrade mechanism of squirrel, we found that Stubexe calculates and concatenates a path pointing to the latest MyApp.exe.
However, it was observed that when the app interrupts and exits during the apply releases process, the app-latestVersion directory might be created, but some files inside it could be missing. Consequently, this causes Stubexe to fail to launch MyApp.
I have submitted a PR to fix the problem. My thought is to create a temp-app-xxxx directory during the apply releases process and install the new version there. After the installation is completed, rename the temp-app-xxxx directory to the final app-xxxx directory.
Steps to recreate
Expected behavior
The app should be able to launch.
Actual behavior
The app has no response.
Additional information
None
The text was updated successfully, but these errors were encountered: