Magic the magic happen

This commit is contained in:
Raymond Lynch 2021-07-11 16:32:29 -04:00
parent 84769ae5b7
commit 658eedca37
188 changed files with 10329 additions and 3549 deletions

View file

@ -1,7 +1,11 @@
$hashes = @{}
$hashes = [ordered]@{}
Get-ChildItem $args[0] -Exclude dalamud.txt,*.zip,*.pdb,*.ipdb | Foreach-Object {
$hashes.Add($_.Name, (Get-FileHash $_.FullName -Algorithm MD5).Hash)
Set-Location $args[0]
Get-ChildItem -File -Recurse -Exclude dalamud.txt,*.zip,*.pdb,*.ipdb | Foreach-Object {
$key = ($_.FullName | Resolve-Path -Relative).TrimStart(".\\")
$val = (Get-FileHash $_.FullName -Algorithm MD5).Hash
$hashes.Add($key, $val)
}
ConvertTo-Json $hashes | Out-File -FilePath (Join-Path $args[0] "hashes.json")
$hashes | ConvertTo-Json | Out-File -FilePath "hashes.json"