mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-26 03:24:04 -08:00
2382762bb1
Some checks failed
Release / changelog (push) Has been cancelled
Release / artifacts (push) Has been cancelled
Release / msi (arm64) (push) Has been cancelled
Release / msi (x64) (push) Has been cancelled
Release / msi (x86) (push) Has been cancelled
Release / release (push) Has been cancelled
17 lines
580 B
PowerShell
17 lines
580 B
PowerShell
# Description: Post build script to compress the themes and generate SHA256 hashes for all files in the dist folder
|
|
|
|
# Compress all themes
|
|
$compress = @{
|
|
Path = "../themes/*.omp.*"
|
|
CompressionLevel = "Fastest"
|
|
DestinationPath = "../src/dist/themes.zip"
|
|
}
|
|
Compress-Archive @compress
|
|
|
|
# Generate SHA256 hashes for all files in the dist folder
|
|
Get-ChildItem ./dist -Exclude *.yaml, *.sig | Get-Unique |
|
|
Foreach-Object {
|
|
$zipHash = Get-FileHash $_.FullName -Algorithm SHA256
|
|
$zipHash.Hash | Out-File -Encoding 'UTF8' "../src/dist/$($_.Name).sha256"
|
|
}
|