Repository navigation
fix(omnivoice-gguf): find the bundled runtime from a staged app environment - #4053
Conversation
…onment (debpalash#4051) An installed app runs a copy of backend/ staged in its runtime folder (<app environment>/project). That copy has no bin/, while the installer keeps the GGUF runtime in resources/bin, so the engine's `<repo root>/bin` lookup reported the runtime as missing. The desktop app now passes resources/bin to the backend as OMNIVOICE_GGUF_BIN_DIR, the same way it already hands over the web UI (OMNIVOICE_FRONTEND_DIST). The backend reads the binary and checksums.sha256 from that folder and keeps `<repo root>/bin` for source checkouts and builds that run from resources/.
|
All contributors on this pull request have signed the VoiceStudio CLA. Thank you! Agreement: VoiceStudio CLA 1.0
The opener has signed: CI and automated reviews are no longer on hold. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
[Medium impact] This PR appears safe to merge.
|
|
I have read the VoiceStudio CLA 1.0 and I hereby sign it. |
Summary
Fixes #4051. An installed app runs a copy of
backend/staged in its runtime folder (<app environment>/project), which has nobin/, while the installer keeps the OmniVoice GGUF runtime inresources/bin. The engine's<repo root>/binlookup therefore reported the runtime as missing.Changes
resources/binto the backend asOMNIVOICE_GGUF_BIN_DIR(same pattern asOMNIVOICE_FRONTEND_DIST); a value the user set wins.checksums.sha256from that folder; source checkouts and store builds keep<repo root>/bin.docs/engines/omnivoice-gguf.md.Type
Testing
test_installed_app_finds_the_runtime_outside_the_staged_backendfails before the fix ("GGUF binary missing …") and passes after.backend-setup.test.tsfor the spawn env; the existing GGUF tests still pass.The GGUF engine now reads its runtime directory from
OMNIVOICE_GGUF_BIN_DIRwhen that variable holds an absolute path. The Electron main process sets it to the packagedresources/bindirectory unless the user has already set a value, which addresses#4051, where a relocatedproject/had nobin/and the engine reported the runtime as missing. A relativeOMNIVOICE_GGUF_BIN_DIRvalue is silently ignored and falls back to<repo root>/bin, so a reviewer should confirm that this silent fallback is acceptable.