mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-10-03 17:15:19 -07:00
fix: update build-server-cuda to copy onedir folder instead of single exe
This commit is contained in:
@@ -208,10 +208,10 @@ build-server-cuda: _ensure-venv
|
|||||||
$env:PATH = "{{ venv_bin }};$env:PATH"; \
|
$env:PATH = "{{ venv_bin }};$env:PATH"; \
|
||||||
& "{{ python }}" backend/build_binary.py --cuda; \
|
& "{{ python }}" backend/build_binary.py --cuda; \
|
||||||
if ($LASTEXITCODE -ne 0) { throw "build_binary.py --cuda failed with exit code $LASTEXITCODE" }; \
|
if ($LASTEXITCODE -ne 0) { throw "build_binary.py --cuda failed with exit code $LASTEXITCODE" }; \
|
||||||
$dest = "$env:APPDATA/com.voicebox.app/backends"; \
|
$dest = "$env:APPDATA/com.voicebox.app/backends/cuda"; \
|
||||||
New-Item -ItemType Directory -Path $dest -Force | Out-Null; \
|
if (Test-Path $dest) { Remove-Item -Recurse -Force $dest }; \
|
||||||
Copy-Item "backend/dist/voicebox-server-cuda.exe" "$dest/voicebox-server-cuda.exe" -Force; \
|
Copy-Item "backend/dist/voicebox-server-cuda" $dest -Recurse -Force; \
|
||||||
Write-Host "Copied CUDA binary to $dest"
|
Write-Host "Copied CUDA backend to $dest"
|
||||||
|
|
||||||
# Build everything locally: CPU server + CUDA server + installable Tauri app
|
# Build everything locally: CPU server + CUDA server + installable Tauri app
|
||||||
[windows]
|
[windows]
|
||||||
|
|||||||
Reference in New Issue
Block a user