Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closes #3156 #3182

Merged
merged 12 commits into from Apr 4, 2024
Merged

Closes #3156 #3182

merged 12 commits into from Apr 4, 2024

Conversation

JustArchi
Copy link
Member

@JustArchi JustArchi commented Apr 3, 2024

This PR changes the update procedure to far more robust and universal solution:

Old method:

  • Moved target directory files to _old
  • Extracted zip archive files to target directory

New method:

  • Extracts zip archive files to _new
  • Moves target directory files to _old
  • Moves _new files to target directory

Code review welcome. I've tested this with plugins update as well as ASF update and found everything to be working as it should.

Potential improvement for the future (totally outside of scope of this PR) will be to start extracting of zip file as the stream is downloaded. But this can wait, firstly we need to get new update procedure right.

Closes #3156

@JustArchi JustArchi added ✨ Enhancement Issues marked with this label indicate further enhancements to the program, such as new features. 📢 Feedback welcome Issues marked with this label are open to any potential feedback that could help us. 🏁 Finished Issues marked with this label were finished already and no further work is required on them. labels Apr 3, 2024
Copy link

github-actions bot commented Apr 3, 2024

Qodana for .NET

1 new problem were found

Inspection name Severity Problems
RoslynAnalyzers Do not catch general exception types ◽️ Notice 1

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

ArchiSteamFarm/Core/Utilities.cs Outdated Show resolved Hide resolved
ArchiSteamFarm/Core/Utilities.cs Outdated Show resolved Hide resolved
ArchiSteamFarm/Core/Utilities.cs Outdated Show resolved Hide resolved
ArchiSteamFarm/Core/Utilities.cs Outdated Show resolved Hide resolved
ArchiSteamFarm/Plugins/PluginsCore.cs Show resolved Hide resolved
@JustArchi JustArchi requested a review from ezhevita April 4, 2024 11:34
ArchiSteamFarm/Core/ASF.cs Outdated Show resolved Hide resolved
ArchiSteamFarm/Core/Utilities.cs Outdated Show resolved Hide resolved
ArchiSteamFarm/Core/Utilities.cs Outdated Show resolved Hide resolved
ArchiSteamFarm/Plugins/PluginsCore.cs Outdated Show resolved Hide resolved
@JustArchi JustArchi merged commit ae9dfca into main Apr 4, 2024
44 checks passed
@JustArchi JustArchi deleted the improve-update-procedure branch April 4, 2024 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Enhancement Issues marked with this label indicate further enhancements to the program, such as new features. 📢 Feedback welcome Issues marked with this label are open to any potential feedback that could help us. 🏁 Finished Issues marked with this label were finished already and no further work is required on them.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve update procedure
3 participants