From 309120ec8924adaafd869ff22288711c0fa2ff28 Mon Sep 17 00:00:00 2001 From: namuda <22334626+namuda@users.noreply.github.com> Date: Tue, 21 Jul 2026 14:26:04 +0900 Subject: [PATCH] fix(build): build voicebox-mcp shim sidecar on Windows (#794) The Windows `build-server` just recipe only built and copied the voicebox-server sidecar, omitting the voicebox-mcp stdio shim that the Unix scripts/build-server.sh builds via `build_binary.py --shim`. As a result `just build` on Windows produced only one sidecar and the Tauri bundle step failed with: resource path `binaries\voicebox-mcp-.exe` doesn't exist Build and copy the shim sidecar after the server, mirroring build-server.sh. Hoist the triple/binaries-dir setup ahead of both builds so the shim step reuses them. Co-authored-by: namu.shin Co-authored-by: Claude Opus 4.8 (1M context) --- justfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/justfile b/justfile index 15a61cb2..4550d263 100644 --- a/justfile +++ b/justfile @@ -226,12 +226,16 @@ build-server: _ensure-venv build-server: _ensure-venv $ErrorActionPreference = "Stop"; \ $env:PATH = "{{ venv_bin }};$env:PATH"; \ - & "{{ python }}" backend/build_binary.py; \ - if ($LASTEXITCODE -ne 0) { throw "build_binary.py failed with exit code $LASTEXITCODE" }; \ $triple = (rustc --print host-tuple); \ New-Item -ItemType Directory -Path "{{ tauri_dir }}/src-tauri/binaries" -Force | Out-Null; \ + & "{{ python }}" backend/build_binary.py; \ + if ($LASTEXITCODE -ne 0) { throw "build_binary.py failed with exit code $LASTEXITCODE" }; \ Copy-Item "backend/dist/voicebox-server.exe" "{{ tauri_dir }}/src-tauri/binaries/voicebox-server-$triple.exe" -Force; \ - Write-Host "Copied sidecar: voicebox-server-$triple.exe" + Write-Host "Copied sidecar: voicebox-server-$triple.exe"; \ + & "{{ python }}" backend/build_binary.py --shim; \ + if ($LASTEXITCODE -ne 0) { throw "build_binary.py --shim failed with exit code $LASTEXITCODE" }; \ + Copy-Item "backend/dist/voicebox-mcp.exe" "{{ tauri_dir }}/src-tauri/binaries/voicebox-mcp-$triple.exe" -Force; \ + Write-Host "Copied sidecar: voicebox-mcp-$triple.exe" # Build CUDA server binary and place in app data dir for local testing [windows]