mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2026-03-12 05:49:15 +00:00
copy only x64 and x86 dlls
This commit is contained in:
parent
8d251d1dea
commit
94f0b847a7
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
@ -56,23 +56,18 @@ jobs:
|
|||||||
|
|
||||||
foreach ($dll in $dllFiles) {
|
foreach ($dll in $dllFiles) {
|
||||||
$fullPath = Join-Path $tempDir $dll
|
$fullPath = Join-Path $tempDir $dll
|
||||||
if ($dll -match "x64" -or (Get-Item $fullPath).Directory.Name -match "x64") {
|
$dirName = (Get-Item $fullPath).Directory.Name
|
||||||
|
|
||||||
|
if ($dll -match "x64" -or $dirName -match "x64") {
|
||||||
Copy-Item $fullPath "controllerClient/x64/nvdaControllerClient.dll"
|
Copy-Item $fullPath "controllerClient/x64/nvdaControllerClient.dll"
|
||||||
Write-Host "Copied x64 DLL: $dll"
|
Write-Host "Copied x64 DLL: $dll"
|
||||||
} elseif ($dll -match "x86" -or (Get-Item $fullPath).Directory.Name -match "x86") {
|
} elseif ($dll -match "x86" -or $dirName -match "x86") {
|
||||||
Copy-Item $fullPath "controllerClient/x86/nvdaControllerClient.dll"
|
Copy-Item $fullPath "controllerClient/x86/nvdaControllerClient.dll"
|
||||||
Write-Host "Copied x86 DLL: $dll"
|
Write-Host "Copied x86 DLL: $dll"
|
||||||
|
} elseif ($dll -match "arm64" -or $dirName -match "arm64") {
|
||||||
|
Write-Host "Skipping ARM64 DLL: $dll (not needed)"
|
||||||
} else {
|
} else {
|
||||||
# If architecture not clear from path, check file architecture
|
Write-Host "Skipping unknown architecture DLL: $dll"
|
||||||
$fileInfo = Get-Item $fullPath
|
|
||||||
# For now, assume first DLL is x64, second is x86 if no clear indication
|
|
||||||
if (!(Test-Path "controllerClient/x64/nvdaControllerClient.dll")) {
|
|
||||||
Copy-Item $fullPath "controllerClient/x64/nvdaControllerClient.dll"
|
|
||||||
Write-Host "Copied to x64 (assumed): $dll"
|
|
||||||
} else {
|
|
||||||
Copy-Item $fullPath "controllerClient/x86/nvdaControllerClient.dll"
|
|
||||||
Write-Host "Copied to x86 (assumed): $dll"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user