nvda-voicemeeter/build.ps1

20 lines
542 B
PowerShell
Raw Normal View History

2023-08-23 16:39:50 +01:00
function Compress-Builds {
$target = Join-Path -Path $PSScriptRoot -ChildPath "dist"
2023-08-23 16:39:50 +01:00
@("basic", "banana", "potato") | ForEach-Object {
Compress-Archive -Path $(Join-Path -Path $target -ChildPath $_) -DestinationPath $(Join-Path -Path $target -ChildPath "${_}.zip") -Force
2023-08-23 16:39:50 +01:00
}
}
function Get-Builds {
@("basic", "banana", "potato") | ForEach-Object {
pdm run pyinstaller "${_}.spec" --noconfirm
}
}
function main {
Get-Builds
Compress-Builds
}
if ($MyInvocation.InvocationName -ne '.') { main }