Skip to content

Commit

Permalink
chore: fix the hash for setup scripts (#3009)
Browse files Browse the repository at this point in the history
* chore: fix the hash for setup scripts

* chore: fix the hash in the getting started guide
  • Loading branch information
feiskyer authored Nov 7, 2023
1 parent 41e686d commit 4b9ba35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Alternative install steps (for *basic* Visual Studio Community edition):

```ps
Invoke-WebRequest 'https://raw.githubusercontent.com/microsoft/ebpf-for-windows/main/scripts/Setup-DevEnv.ps1' -OutFile $env:TEMP\Setup-DeveEnv.ps1
if ((get-filehash -Algorithm SHA256 $env:TEMP\Setup-DeveEnv.ps1).Hash -eq '9B9C4358B05DBD16EF58C0548B1ADBA4B5591FE14DFD3239FC580BB95B39988C') { &"$env:TEMP\Setup-DeveEnv.ps1" }
if ((get-filehash -Algorithm SHA256 $env:TEMP\Setup-DeveEnv.ps1).Hash -eq '0E8733AC82CFDEC93A3606AEA586A6BD08980D2301754EC165230FBA353E7B4C') { &"$env:TEMP\Setup-DeveEnv.ps1" }
```
>**Note**: the WDK for Windows 11 is [not currently available on Chocolatey](https://community.chocolatey.org/packages?q=windowsdriverkit),
please install manually with the link in the [Prerequisites](#prerequisites) section above.
Expand Down
2 changes: 1 addition & 1 deletion scripts/Setup-DevEnv.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: MIT

Invoke-WebRequest 'https://community.chocolatey.org/install.ps1' -OutFile $env:TEMP\install_choco.ps1
if ((get-filehash -Algorithm SHA256 $env:TEMP\install_choco.ps1).Hash -ne '45014AC94BAAA135449D73DA9F4760ACDAE4C8943FA9998A47B74D0BBA8A5295') { throw "Wrong file hash for Chocolatey installer"}
if ((get-filehash -Algorithm SHA256 $env:TEMP\install_choco.ps1).Hash -ne 'B2980C92C1E3EFB45E3EFA428E2EF26EAC846F8B2606DA0D2B1342AC26D36B97') { throw "Wrong file hash for Chocolatey installer"}
&"$env:TEMP\install_choco.ps1"
choco install git --version 2.38.1 -y
choco install visualstudio2022community --version 117.4.2.0 -y
Expand Down

0 comments on commit 4b9ba35

Please sign in to comment.