Skip to content

Code Quality: Refactor launcher update logic and remove hash check#17890

Merged
yair100 merged 3 commits into
mainfrom
ya/BranchSpecific
Jan 6, 2026
Merged

Code Quality: Refactor launcher update logic and remove hash check#17890
yair100 merged 3 commits into
mainfrom
ya/BranchSpecific

Conversation

@yair100
Copy link
Copy Markdown
Member

@yair100 yair100 commented Nov 19, 2025

Removed SHA256 hash file and related hash comparison logic from Files.App.Launcher update process. Now uses a branch file (Branch.txt) to determine if the launcher should be updated, simplifying the update mechanism. Updated PowerShell command to ensure Branch.txt is created during setup. This streamlines the update process and improves maintainability.

Resolved / Related Issues

To prevent extra work, all changes to the Files codebase must link to an approved issue marked as Ready to build. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.

Steps used to test these changes
This PR is a little challenging to test without deploying a preview build.

@yair100 yair100 added the ready for review Pull requests that are ready for review label Nov 19, 2025
Comment thread src/Files.App/Services/App/AppUpdateSideloadService.cs Outdated
@Josh65-2201
Copy link
Copy Markdown
Member

It doesn't replace the existing preview launcher, but if I turn it off and then on again in dev it shows
image

@Josh65-2201
Copy link
Copy Markdown
Member

of Files? If so it's still having the same issue. Already tried cleaning solution and uninstalling the existing install.

Removed SHA256 hash file and related hash comparison logic from Files.App.Launcher update process. Now uses a branch file (Branch.txt) to determine if the launcher should be updated, simplifying the update mechanism. Updated PowerShell command to ensure Branch.txt is created during setup. This streamlines the update process and improves maintainability.
Comment thread src/Files.App/Services/App/AppUpdateSideloadService.cs
Comment thread src/Files.App/Services/App/AppUpdateStoreService.cs
Signed-off-by: Yair <39923744+yaira2@users.noreply.github.com>
Comment thread src/Files.App/Services/App/AppUpdateStoreService.cs
Comment thread src/Files.App/ViewModels/Settings/AdvancedViewModel.cs
Copy link
Copy Markdown
Member

@Josh65-2201 Josh65-2201 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me

@yair100 yair100 merged commit 9f8d492 into main Jan 6, 2026
9 checks passed
@yair100 yair100 deleted the ya/BranchSpecific branch January 6, 2026 21:54
@yair100 yair100 added ready to merge Pull requests that are approved and ready to merge and removed ready for review Pull requests that are ready for review labels Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge Pull requests that are approved and ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Set as default isn't branch specific

3 participants