mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2026-04-07 18:03:35 +00:00
move $target out of loop
-Force compress archive if it exists
This commit is contained in:
@@ -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")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user