feat(home): move a built version to another folder, with a progress page like a build's #261
No reviewers
Labels
No labels
area/build
area/install
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!261
Loading…
Reference in a new issue
No description provided.
Delete branch "Mone/LongshotLauncher:feat/move-built-game"
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?
A version's game folder could only stay where it was built: moving it by hand (another drive with room, say) left the launcher pointing at the old path. This adds Move… to a version's row, so the folder can go anywhere and stay listed and playable.
What changed
.longshot-moving-…), links recreated rather than followed (links inside the folder are rebased), the builds list saved, and only then the old folder removed. A failure before the list is saved removes the staging folder and leaves everything as it was; a failure to save the list puts the folder back.Core/Lang).Core:
Core/BuildRelocation.cs; app:MoveBuildProgressViewModel/MoveBuildProgressView,HomeViewModel.MoveBuildAsync.Testing
Tested
dotnet build LongshotLauncher.slnx -c Release: 0 warnings, 0 errors.tests/launcher_core/BuildRelocationChecks.cs(new, in the core suite): same-drive rename; cross-drive copy with the builds list and the remembered game-file paths following the build; the list after reloading it; a running game, an occupied destination and too little space refused with nothing changed; progress reports in order, ending at the total; Cancel during the copy keeps the source and the list and leaves no destination or staging folder.tests/launcher_app) pass.builds.jsonbyte for byte as before, nothing left on E:. Earlier, the same build was moved across drives to C: in full with this branch's first version of the page: the home lists it in its new folder.Still to test
SavesChecks("A link whose shared save folder is gone…") andscripts/translations.pyreports catalog texts left over: both onmainas it is too (checked on a clean checkout of6887d57), not from this change.Screenshots follow in a comment.
Possibly related, for context:
Screenshots (Windows 11, launcher in Italian; taken on a local build with #262 and #263 in it too, so the row also shows the gear). The destination's path is blanked out.
The move's page, ~1 GB into a cross-drive copy of a 31.2 GB version, before Cancel:
The row with Move…:
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.