Skip to content

Commit

Permalink
+ added script to automatically generate installer checksums
Browse files Browse the repository at this point in the history
  • Loading branch information
tryallthethings committed Oct 26, 2020
1 parent 12f3ee7 commit f07aa97
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions DNS-Swapper/tools/get-checksums.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
$checksums = join-path -path $PSScriptRoot -childpath "\checksums.txt"
if ([System.IO.File]::Exists($checksums)) {
del $checksums
}

$installerpath = join-path -path $PSScriptRoot -childpath "..\..\Installer_advinst\Installer_advinst-SetupFiles"

Get-ChildItem $installerpath -Filter *.msi |
Foreach-Object {
Get-FileHash $_ SHA512 | Format-List | Out-File -Append -File $checksums
}

1 change: 1 addition & 0 deletions DNS-Swapper/tools/run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pwsh .\get-checksums.ps1

0 comments on commit f07aa97

Please sign in to comment.