File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ if (-not $SkipVoiceAttackRestart -and $IsWindowsOS) {
1414 try {
1515 Stop-Process - Name " VoiceAttack" - Force - ErrorAction SilentlyContinue
1616 Write-Host " VoiceAttack stopped." - ForegroundColor Green
17- } catch {
17+ }
18+ catch {
1819 Write-Host " VoiceAttack was not running." - ForegroundColor Yellow
1920 }
2021
@@ -37,9 +38,11 @@ if (-not (Test-Path $DestinationPath)) {
3738 New-Item - ItemType Directory - Path $DestinationPath - Force | Out-Null
3839}
3940
40- Copy-Item " EliteVA/bin/Debug/net8.0/EliteVA.dll" " $DestinationPath /EliteVA.dll" - Force
41- Copy-Item " EliteVA/bin/Debug/net8.0/EliteAPI.dll" " $DestinationPath /EliteAPI.dll" - Force
42- Copy-Item " EliteAPI/bin/Debug/net48/Newtonsoft.Json.dll" " $DestinationPath /Newtonsoft.Json.dll" - Force
41+ # Copy all items from build output to destination
42+ $buildOutputPath = " EliteVA/bin/Debug/net8.0/"
43+ Get-ChildItem - Path $buildOutputPath - Filter * .dll | ForEach-Object {
44+ Copy-Item $_.FullName - Destination $DestinationPath - Force
45+ }
4346
4447Write-Host " Plugin deployed successfully." - ForegroundColor Green
4548
@@ -49,7 +52,8 @@ if (-not $SkipVoiceAttackRestart -and $IsWindowsOS) {
4952 if (Test-Path $voiceAttackExe ) {
5053 Start-Process $voiceAttackExe
5154 Write-Host " Done!" - ForegroundColor Green
52- } else {
55+ }
56+ else {
5357 Write-Warning " VoiceAttack.exe not found at: $voiceAttackExe "
5458 }
5559}
You can’t perform that action at this time.
0 commit comments