mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
Magic the magic happen
This commit is contained in:
parent
84769ae5b7
commit
658eedca37
188 changed files with 10329 additions and 3549 deletions
|
|
@ -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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue