mirror of
https://github.com/storytold/craft-launcher.git
synced 2026-11-16 23:24:31 +00:00
unpack_over copied the new files over the launcher's folder one at a time, so a copy that failed part way (a locked file, a full disk) left new and old files mixed, and the helper then started that mix. It now saves each file it replaces under the staging folder and, when a copy fails, removes the files the update added and copies the saved ones back before it returns the error. When a saved file can't be copied back, the saved files move to a launcher-update-recovery-<time> folder in the cache, which later updates leave alone, and the error names it. If that move fails, they stay in the staging folder, and the next update refuses to run until they are moved.