add self updater #1352
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!1352
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1352/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Nmzik on GitHub · 2026-10-10 03:12 UTC · original
KytyPS5:add-self-updater→main· +1019 −113 · 12 files · 2 commits · merged 2026-10-10 03:42 UTCNo description provided.
@coderabbitai[bot] on GitHub · 2026-10-10 03:18 UTC · original · edited 2026-10-10 03:35 UTC
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
1201eb0a-647d-41c1-9734-25a1dcfcd31a📥 Commits
Reviewing files that changed from the base of the PR and between
b41c23d338andf1764a0bba.📒 Files selected for processing (3)
.github/workflows/build.ymlsrc/launcher/CMakeLists.txtsrc/updater/CMakeLists.txt💤 Files with no reviewable changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
📝 Walkthrough
Walkthrough
The launcher now checks official release metadata and offers package installation or release notes. For installation, it downloads and verifies the selected package, extracts it, validates the payload with
kyty_updater, and delegates replacement and restart to that executable. The launcher blocks game launches during installation and displays prior installer results. Build, installation, artifact verification, and release packaging now include the updater.Suggested reviewers:
cosmoPriority: ➖ Normal
Change: Feature
Merge Risk: 🔵 Low · up to
f1764Some failed updates and successful Windows updates leave temporary updater workspaces behind, which can accumulate disk usage. This is a bounded cleanup issue; no broader merge-blocking failure was established.
Pre-merge checks |
3 |
1 |
1
❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
Full details: Docstring Coverage
Explanation
Docstring coverage is 5.80% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 69 functions across 10 files. (3 skipped: 3 unsupported.)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.@ -143,0 +228,4 @@return;}m_workspace = std::make_unique<QTemporaryDir>(QDir(directory).filePath(QStringLiteral(".kyty-update-XXXXXX")));@coderabbitai[bot] on GitHub · 2026-10-10 03:18 UTC · original
🚀 Performance & Scalability | 🟡 Minor | ⚡ Quick win
Remove stale
.kyty-update-*workspaces before you create a new one.Restart()callssetAutoRemove(false). After that call, onlyCleanupWorkspaceinsrc/updater/main.cppcan delete the workspace.CleanupWorkspaceruns only whenInstallsucceeds andLaunchsucceeds.The workspace stays in the installation folder in these cases:
WaitForParenttimes out.Installfails. The workspace then still holds the downloaded package and the full rolled-back payload, often hundreds of MB.Launchfails.kyty_updater.execannot be deleted.helper.logalso stays because the helper holds it open as stdout/stderr.No code removes these folders later. Each failed or Windows update leaves one more folder.
Remove stale workspaces in
Download()before you create the newQTemporaryDir. The user startsDownload(), so the previous helper has finished by then. Do not run this cleanup at startup. At startup, the helper can still be running its own cleanup. Keep.kyty-update-lock, because it holds backups for recovery. Keep.kyty-update-resulttoo. Ignore removal errors.🧹 Proposed fix
📝 Committable suggestion
@coderabbitai[bot] on GitHub · 2026-10-10 03:18 UTC · original · reviewed
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
61512628-619c-4e21-8300-eb139582da1a📥 Commits
Reviewing files that changed from the base of the PR and between
679be25c37andb41c23d338.📒 Files selected for processing (14)
.github/workflows/build.ymlREADME.mdsrc/launcher/CMakeLists.txtsrc/launcher/include/updateChecker.hsrc/launcher/include/updateRelease.hsrc/launcher/src/mainDialog.cppsrc/launcher/src/updateChecker.cppsrc/launcher/src/updateRelease.cppsrc/updater/CMakeLists.txtsrc/updater/UpdateInstaller.cppsrc/updater/UpdateInstaller.hsrc/updater/main.cpptests/UpdateInstallerTests.cpptests/UpdateReleaseTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.