Skip to content

fix(updater): use robocopy mirror on Windows to remove obsolete DLLs and assets during in-place updates - #1383

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1377-windows-updater-robocopy-mirror
Oct 10, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1377-windows-updater-robocopy-mirror

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #1377

Summary

  • In buildWindowsReplaceBatch (lib/core/updater/installers/update_install_utils.dart), replaced purely additive xcopy with robocopy /MIR.
  • Excludes portable configuration and user data directories/files: /XD "QueryaData" /XF ".portable".
  • Configured retry parameters (/R:2 /W:1) and exit code handling (if %ERRORLEVEL% GEQ 8), as robocopy returns 0–7 on successful operations.
  • Updated unit test in test/core/updater/update_platform_installer_test.dart.

@github-actions github-actions Bot added bug Something isn't working stability Theme parser epic label: stability core Core library logic and services P2 Medium priority / Parity & Refactoring labels Oct 10, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit eb0c067 into dev Oct 10, 2026
13 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1377-windows-updater-robocopy-mirror branch October 11, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core Core library logic and services P2 Medium priority / Parity & Refactoring stability Theme parser epic label: stability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant