build and compress

This commit is contained in:
onyx-and-iris 2023-08-23 16:39:50 +01:00
parent 4f48b0f01d
commit 3f696d86da

View File

@ -1,3 +1,20 @@
@("basic", "banana", "potato") | ForEach-Object { function Compress-Builds {
pdm run pyinstaller "${_}.spec" --noconfirm @("basic", "banana", "potato") | ForEach-Object {
$target = Join-Path -Path $PSScriptRoot -ChildPath "dist"
Compress-Archive -Path $(Join-Path -Path $target -ChildPath $_) -DestinationPath $(Join-Path -Path $target -ChildPath "${_}.zip")
}
} }
function Get-Builds {
@("basic", "banana", "potato") | ForEach-Object {
pdm run pyinstaller "${_}.spec" --noconfirm
}
}
function main {
Get-Builds
Compress-Builds
}
if ($MyInvocation.InvocationName -ne '.') { main }