mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2024-11-22 01:50:47 +00:00
move $target out of loop
-Force compress archive if it exists
This commit is contained in:
parent
3f696d86da
commit
b6b4c5fd97
@ -1,7 +1,7 @@
|
|||||||
function Compress-Builds {
|
function Compress-Builds {
|
||||||
|
$target = Join-Path -Path $PSScriptRoot -ChildPath "dist"
|
||||||
@("basic", "banana", "potato") | ForEach-Object {
|
@("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") -Force
|
||||||
Compress-Archive -Path $(Join-Path -Path $target -ChildPath $_) -DestinationPath $(Join-Path -Path $target -ChildPath "${_}.zip")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user