Closed AitakattaSora closed 6 days ago
@anfragment I reviewed all your comments and made the suggested adjustments. Thank you very much for the thorough feedback, it’s truly appreciated.
@AitakattaSora after some manual testing, I came across a couple issues:
os.Executable()
to determine the path dynamically might be a better choice.filepath.EvalSymlinks
..old
suffix. If an error occurs, it can be reverted by renaming it back.@anfragment I unified the update process by utilizing a temporary directory for unarchiving across all platforms. I also implemented unique backup name generation using a timestamp to prevent conflicts in cases where a previous update was aborted and the backup file remained in storage.
Recreated commits from this PR
closes #91