Skip to content

Commit

Permalink
fixed verifying command in docs steps on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
qlrd committed Sep 26, 2024
1 parent f172162 commit 6100d0a
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion docs/getting-started/installing/from-gui/windows.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6100d0a

Please sign in to comment.