-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
feat(windows): Remove UI com online-update check 📲 💽 #10156
feat(windows): Remove UI com online-update check 📲 💽 #10156
Conversation
User Test ResultsTest specification and instructions User tests are not required Test Artifacts |
Just using the TUpdateCheckResponse gives us enough detail for now as we no longer have a UI set which packages to install
windows/src/desktop/kmshell/main/Keyman.System.RemoteUpdateCheck.pas
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good, a bunch of style things to cleanup, but generally pretty happy with it 😁
windows/src/desktop/kmshell/main/Keyman.System.RemoteUpdateCheck.pas
Outdated
Show resolved
Hide resolved
windows/src/desktop/kmshell/main/Keyman.System.RemoteUpdateCheck.pas
Outdated
Show resolved
Hide resolved
windows/src/desktop/kmshell/main/Keyman.System.RemoteUpdateCheck.pas
Outdated
Show resolved
Hide resolved
windows/src/desktop/kmshell/main/Keyman.System.RemoteUpdateCheck.pas
Outdated
Show resolved
Hide resolved
windows/src/desktop/kmshell/main/Keyman.System.RemoteUpdateCheck.pas
Outdated
Show resolved
Hide resolved
windows/src/desktop/kmshell/main/Keyman.System.RemoteUpdateCheck.pas
Outdated
Show resolved
Hide resolved
windows/src/desktop/kmshell/main/Keyman.System.RemoteUpdateCheck.pas
Outdated
Show resolved
Hide resolved
windows/src/desktop/kmshell/main/Keyman.System.RemoteUpdateCheck.pas
Outdated
Show resolved
Hide resolved
Co-authored-by: Marc Durdin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
if not DownloadFile(Params.Packages[i].DownloadURL, Params.Packages[i].SavePath) then // I2742 | ||
begin | ||
Params.Packages[i].Install := False; // Download failed but install other files | ||
end | ||
else | ||
Inc(downloadCount); | ||
FDownload.StartPosition := FDownload.StartPosition + Params.Packages[i].DownloadSize; | ||
end; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if not DownloadFile(Params.Packages[i].DownloadURL, Params.Packages[i].SavePath) then // I2742 | |
begin | |
Params.Packages[i].Install := False; // Download failed but install other files | |
end | |
else | |
Inc(downloadCount); | |
FDownload.StartPosition := FDownload.StartPosition + Params.Packages[i].DownloadSize; | |
end; | |
if not DownloadFile(Params.Packages[i].DownloadURL, Params.Packages[i].SavePath) then // I2742 | |
begin | |
Params.Packages[i].Install := False; // Download failed but install other files | |
end | |
else | |
Inc(downloadCount); | |
FDownload.StartPosition := FDownload.StartPosition + Params.Packages[i].DownloadSize; | |
end; |
else | ||
// Keyboard Packages | ||
FDownload.StartPosition := 0; | ||
for i := 0 to High(Params.Packages) do | ||
begin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
begin | |
begin |
This is just first step in #10038
Fixes: #10119
I discovered
- Remove all UI calls from it and use callbacks
Not going to use call backs at all at this stage.
- Keep parsing separate
For now I have this testing with
kmshell.exe -buc
I will have this separated more in the next PR- Consider merging TOnlineUpdateCheckParams and TUpdateCheckResponse
This I think can be done I just have a question around
old version
it seems that we don't want to use the old version in the Response. Probably because it is just the "previous" version. Where as the version currently installed could be even older. We could make the Fparams of typeTUpdateCheckResponse
as the only other piece of data we would lose is aTRemoteUpdateCheckResult
which I will not be using.- Figure out how SPackageUpgradeFilename is used for upgrading packages and how it fits into the new check/download, with later install model
This was just flat file for recording the file names of the packages in the temporary data location in the case when the elevated call was required. We now have all the information we need in the
cache.json
@keymanapp-test-bot skip