Autoupdater: ENOENT after quitAndInstall on Linux x64



I’m trying to implement auto-update feature in my electron app. After two days of fighting with it, i ended up with this error after quitAndInstall().

Uncaught Exception:
Error: spawn /tmp/up-mCa4qt/my-electron-app-0.0.2-x86_64.AppImage ENOENT
at exports._errnoException (util.js:1050:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:367:16)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)

It seems, that downloaded binary in path /tmp/up-mCa4qt/my-electron-app-0.0.2-x86_64.AppImage somehow gets deleted before spawn command is executed.

So I checked, the downloaded binary successfully downloading, and the fresh binary is runnable from this path. But when I hit quitAndInstall(), it deletes before run. I don’t know why and where to dig.


Maybe electron-updater does not download the whole file. I get different sha512 hashsums


What’s the format of sha512 in latest.yml?