Skip to content

Commit 1159267

Browse files
committed
🚚 update script
1 parent bc04ca8 commit 1159267

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

deploy-plugin.ps1

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff 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

4447
Write-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
}

0 commit comments

Comments
 (0)