Error: ENOENT: no such file or directory, open '/opt/IPFS Desktop/resources/app-update.yml #1671
Labels
area/linux
Linux
area/updates
Issues related to manual and automatic updates
effort/hours
Estimated to take one or several hours
exp/intermediate
Prior experience is likely helpful
help wanted
Seeking public contribution on this issue
P2
Medium: Good to have, but can wait until someone steps up
Describe the bug
When using a .appImage, the app is updated as expected.
If I use an other install method (.tar.xz, .deb, .snap), the app fails to update. I think the problem would be the same on Fedora for .rpm installs.
To Reproduce
Steps to reproduce the behavior:
error.log shows:
2020-10-07T14:54:12.831Z error: [updater] Error: ENOENT: no such file or directory, open '/opt/IPFS Desktop/resources/app-update.yml'
Error appears right after start-up, or when manually checking for updates.
Expected behavior
IPFS Desktop should upgrade to v0.12.2 or newer, like when launched via a .appImage.
Additional context
I'm guessing that the
app-update.yml
mentioned in the error is generated byelectron-builder
only for AppImage by default when publishing (see here).Proposed solutions
If possible, electron-builder should enable the auto-update of a .deb or .snap file. I'm not sure that this is possible as it is the package managers' job.
If not possible, .deb and .snap (and .rpm) should be added to their native package manager's repositories: APT and Snapstore (and RPM). Might need some work, though. Maybe the recent move to GitHub Action can help? (#1657)
If not possible, PL could host releases, and IPFS Desklearntop could be fetched via IPFS. :) IPFS Desktop would check for updates via a ping to ipfs.io, or by subscribing to a pubsub channel where PL announce new releases. Would be awesome, but probably a lot of code to write and maintain. This was already partially proposed by @lidel here: #1263 (comment) (all but the pubsub channel)
If not possible, #1488 should add some UI candies on update failure and warn that non-AppImage users need to monitor Github to check when a release is available.
Logs
error.log:
2020-10-07T15:52:48.610Z error: [updater] Error: ENOENT: no such file or directory, open '/opt/IPFS Desktop/resources/app-update.yml'
The text was updated successfully, but these errors were encountered: