From 6100d0af77caa9e52de2afe35d7962637a910faf Mon Sep 17 00:00:00 2001 From: qlrd Date: Wed, 25 Sep 2024 22:44:18 -0300 Subject: [PATCH] fixed verifying command in docs steps on windows --- .../installing/from-gui/windows.en.md | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/docs/getting-started/installing/from-gui/windows.en.md b/docs/getting-started/installing/from-gui/windows.en.md index e38faf26..d4a7b68a 100644 --- a/docs/getting-started/installing/from-gui/windows.en.md +++ b/docs/getting-started/installing/from-gui/windows.en.md @@ -11,7 +11,34 @@ verify-the-integrity-explain.en.txt ----8<---- ```pwsh -(Get-FileHash '.\{{latest_installer_win}}').Hash -eq (Get-Content '.\{{latest_installer_win}}') +(Get-FileHash '.\{{latest_installer_win}}').Hash.ToLower() -eq (Get-Content '.\{{latest_installer_win}}.sha256.txt').split(" ")[0] +``` + +The result in prompt should be `True`. + +Alternatively, you can check more closely in two steps: + +* Compute the binary sha256sum hash: + +```pwsh +# Option 1: Compute in default way +Get-FileHash '.\{{latest_installer_win}}' + +# Option 2: Compute and filter the necessary information +(Get-FileHash '.\{{latest_installer_win}}').Hash + +# Option 3: Compute, filter and process the Hash for lowercase letters +(Get-FileHash '.\{{latest_installer_win}}').Hash.ToLower() +``` + +* Compare with provided hash: + +```pwsh +# Option 1: Get content +Get-Content '.\{{latest_installer_win}}.sha256.txt' + +# Option 2: Get content and filter the necessary information +(Get-Content '.\{{latest_installer_win}}.sha256.txt').split(" ")[0] ``` ## Verify the authenticity