From 31bc06746c1426af37d0e96fd580e8fcce002c38 Mon Sep 17 00:00:00 2001 From: goat <16760685+goaaats@users.noreply.github.com> Date: Sun, 21 Mar 2021 20:54:15 +0100 Subject: [PATCH] feat: integrity hash PS1 --- CreateHashList.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 CreateHashList.ps1 diff --git a/CreateHashList.ps1 b/CreateHashList.ps1 new file mode 100644 index 000000000..668c1c140 --- /dev/null +++ b/CreateHashList.ps1 @@ -0,0 +1,7 @@ +$hashes = @{} + +Get-ChildItem $args[0] -Exclude dalamud.txt,*.zip,*.pdb,*.ipdb | Foreach-Object { + $hashes.Add($_.Name, (Get-FileHash $_.FullName -Algorithm MD5).Hash) +} + +ConvertTo-Json $hashes | Out-File -FilePath (Join-Path $args[0] "hashes.json") \ No newline at end of file