Self-update does not work with distributing binaries as zip #49
The updater's self-update functionality (replacing its own binary) does not work when it is launched from a zip file, as the binary path is some temp location.
We currently distribute the updater in a zip file, presumably due to the binary obesity (like 40M IIRC). One option would be try to find some compile flags to reduce the binary size, and then distribute the bare executable.
Another way would be to have the updater properly install itself - copy to the installation directory, create shortcuts etc. This would be a good idea in general since, assuming most users put the updater in the default "Downloads" folder or whatever, it is sketchy to have a non-single-use program located there.
I've heard that's hard to reduce file size of QML binaries.
That's good you talk about having the updater properly installing itself. I'm thinking about this for weeks (I was just postponing that talk because of all other things I'm already thinking about).
For the next sentences I'll assume Linux (we would adapt for other OS):
Basically what I think is that the updater would install itself as
We may also try to replace the binary that is stored in the wild, but even if we fail to, that would not be a problem, starting an old updater will load the newer one even before trying to update.
That would fix the started-from-zip issue at the same time.