Commit Graph
34 Commits
Author SHA1 Message Date
Palash Debnath bc6d564cfc fix(dev): spawn the real Bun so npm-installed Bun works on Windows (#4603)
* fix(dev): spawn the real Bun so npm-installed Bun works on Windows

bunCommand() prefers the running Bun, then npm_execpath, then the executable behind a Windows npm shim on PATH. A missing Bun gives an install hint from every script that spawns it, and a test guards against bare bun/bunx spawns. Builds on the report and first fix in #4525.

* Add changelog fragment for the Bun spawn fix
2026-12-02 20:25:13 +00:00
debpalash 6df01495df Merge #4232: fix(windows-rocm): read the interpreter pin from the recipe 2026-11-20 03:11:22 +05:30
Palash Debnath a1c7d239eb feat(runtime): CUDA 12.6 PyTorch for pre-Volta NVIDIA GPUs (#4244)
Fixes #4242.
2026-11-18 05:51:06 +05:30
DeryFerd 734e1038a6 fix(windows-rocm): read the interpreter pin from the recipe
scripts/windows-rocm-recipe.json is the reviewed record of the interpreter the
Windows ROCm wheels and HIP runtime were tested against. scripts/setup-api.mjs
spelled the uv request out (cpython-3.12-windows-x86_64) and repeated 3.12 in its
x64 error, and the desktop readiness constant spells it out again, so a recipe
bump would leave both asking for an interpreter the recipe no longer pins.

Add a shared helper that turns the recipe into the uv request and the displayed
version, use it in the setup script, and add a test that runs the helper through
node against the shipped recipe and compares it with the desktop constant.

tests/test_windows_rocm_recipe_pin.py runs 3 passed; reverting the setup script
makes it fail with "the ROCm branch retypes the interpreter version instead of
reading the recipe".
2026-11-17 19:30:56 +07:00
debpalash 09dd7079f4 ci: package the app on every PR, gate merges on every job, run platform smokes in parallel
- Release smoke (Linux, macOS): build the app and web UI, run electron-builder
  --dir with the release config (bundled CLI, native helper, bundle symlink
  check), then the release's packaged-app checks: packaging contract, glibc
  floor, macOS bundle signature, packaged startup smoke (Linux through the
  public voicestudio entry, as the AppImage starts it) and cli-bundle-smoke.
- Tests (backend + frontend) now waits for every ci.yml job, so a failing UI
  crawler, Desktop UI, platform smoke or release smoke blocks auto-merge with
  the ruleset unchanged.
- Platform smokes start beside Tests (Python) instead of after it, removing
  ~8 minutes from the longest path.
- scripts/freeze_cli.py, smoke_windows_rocm.py and check_glibc_floor.py no
  longer let the Electron jobs skip; a test derives the list from the code.
- The bundled-uv staging step is one script shared by the release, the
  packaging rehearsal and the release smoke.
- Docs: the merge queue needs an organization-owned repository; describe the
  current auto-merge setup.
2026-11-11 17:16:43 +05:30
debpalash 59d198fe6e Merge remote-tracking branch 'origin/main' into ci/signpath-windows-signing 2026-11-11 15:25:09 +05:30
debpalash 9c6ce9cf80 ci(signpath): load the signing helper from the workflow commit, use the builder's blockmap writer, translate the README link, tighten the policy 2026-11-11 14:20:02 +05:30
debpalash b26ae2e553 ci(release): sign Windows installers through SignPath when configured
Active only with the SIGNPATH_API_TOKEN secret and the three SIGNPATH_*
repository variables; otherwise Windows signing is unchanged. The signed
installer replaces the unsigned one before upload, and the blockmap and
update feed hashes are regenerated to match. Adds the code signing policy
and owner checklist.
2026-11-11 13:39:15 +05:30
debpalash 39b1456c47 feat(mac): brand the DMG install window
The DMG opened on electron-builder's plain default: a dashed arrow, a
white strip down the right edge and a volume title ending in the arch.
The strip is Finder's vertical scroll bar: the window frame equals the
background, so the title bar (plus any tab, path or status bar) leaves
less room than the icon cells need.

- Branded background authored as build/dmg/background.svg (plum tile,
  rose-to-amber arrow and waveform, one headline, one open-source
  footer), rendered to 1x/2x PNGs by `bun run dmg:background`.
- dmg block: 660x440 window, 112 pt icons placed so their cells fit even
  with every Finder bar shown (no scroll bar), labels on mid-tone pills
  readable as black (Light) or white (Dark) text, and the title
  `${productName} ${version}`. File names stay VoiceStudio-<v>-mac-<arch>.dmg.
- tests/dmg-window.test.mjs (run by the packaging contract) checks the
  PNG sizes, window, icon slots, title and file name.
- docs/branding.md lists the asset and explains grey icons under the
  macOS 26 Clear/Tinted icon style.
2026-11-11 05:11:15 +05:30
debpalash bfa0f14a4d fix(dev): make bun run dev work on macOS and survive restarts (#3813)
- The macOS dev launcher called `cp -cR`, `plutil` and `codesign` from
  PATH; with Homebrew coreutils first, GNU cp rejects `-c` and the
  launcher exits. It now uses /bin/cp, /usr/bin/plutil and
  /usr/bin/codesign.
- RefreshTokenStore asked safeStorage (the macOS Keychain) in its
  constructor on every launch, even with account features off; a
  re-signed dev bundle then blocked main on an access prompt before the
  backend started. The keyring is now asked only to read a saved token
  or write a new one, `remembered` only with account features on, and a
  keyring that throws keeps the session in memory.
- electron-vite starts the new Electron on a main-process edit while the
  old one still holds the single-instance lock, so the new one quit and
  ended the session (a failed lock request never reaches `ready`, so
  retrying cannot help). Each dev instance records its pid; the next
  waits up to 20 s for it to exit before asking for the lock. Packaged
  builds never wait.

The reported rolldown first-watch-build stall did not reproduce here
(Darwin 27 arm64, rolldown 1.2.7: BUNDLE_END fires in ~0.1 s with the
native watcher), so no polling override is added.

Inspired by #3813 by @larrytoube.
2026-11-09 17:31:58 +05:30
debpalash 2534bb9371 fix(setup): heal non-ASCII .pth files in source checkouts (#1783, #3726)
uv's editable install writes the checkout path into
`_editable_impl_omnivoice.pth` as UTF-8, and Python 3.11 decodes `.pth`
files in the ANSI code page. A checkout in a non-ASCII folder on a
non-UTF-8 Windows code page (Thai cp874 here) therefore could not run
`bun run setup:api` or `bun run dev`: uv's interpreter query died in
`init_import_site`. Installed runtimes were already healed; no
source-checkout path called the healer.

The healer moves to `electron/scripts/pth-ascii.mjs` (re-exported by
`src/main/pth-ascii.ts`, with a synchronous twin) so plain-Node scripts
share it. `setup:api` heals `.venv` before every uv call (each sync
rewrites the file), the dev:api supervisor before every launch, and the
app's source-checkout branch before probing the venv. Failures are
tolerated everywhere.

Inspired by #3726 by @Taksin014.
2026-11-09 17:31:58 +05:30
Shimul Debnath c7a9bfe9da fix(dev): check Node before imports and all setup paths 2026-11-07 21:25:04 +05:30
Shimul Debnath b9ddf72c96 fix(dev): explain unsupported Node versions before startup 2026-11-07 21:09:08 +05:30
Sebastian Rodriguez 0ffa5dd974 fix(dev): launch on macOS 14 and older without /usr/bin/lockf
Squashed from #3592.
2026-10-27 23:50:25 +05:30
debpalash 7772292066 fix(electron): launch start and preview through the Electron resolver
electron-vite preview reads node_modules/electron/path.txt itself and throws
'Electron uninstall' before the lazily downloaded binary exists. start and
preview now run the same launcher as dev, which resolves the binary first,
and the launcher drops an inherited ELECTRON_RUN_AS_NODE.
2026-10-27 01:11:07 +05:30
debpalash 7ba5f26c78 release: name desktop downloads VoiceStudio-<version>-<os>-<arch>
Electron is the only desktop app, so direct-download artifacts drop the
Electron label (store builds keep theirs). Installers still resolve the
VoiceStudio-Electron-* names for releases up to v0.5.7-beta.3; update feed
file names are unchanged and each feed names its own installer.
2026-10-26 17:20:20 +05:30
Michael Maertzdorfanddebpalash d6d17c81d4 feat(gpu): add opt-in native Windows ROCm installation (#3045)
* feat(gpu): add opt-in native Windows ROCm installation

Use one pinned Windows recipe for source and Electron setup, verify native packages before reuse, and preserve explicit opt-in and sidecar compatibility boundaries.

* docs(rocm): drop agent-instruction plan files; move the entry to a changelog fragment

* fix(rocm): hash-pin every AMD artifact and keep dependencies at their locked versions

Each repo.radeon.com wheel/sdist now carries a sha256 in the recipe, the loader
refuses one without it, and the installer installs from a --hash requirements
file (uv verifies; UV_NO_VERIFY_HASHES is stripped). A constraints file pins
every installed package except the overlay (torch family, rocm*, triton*,
ctranslate2), so transitive deps no longer resolve fresh from the index. The
rocm sdist builds with the locked setuptools.

* fix(rocm): ask before switching an existing runtime to Windows ROCm

OMNIVOICE_TORCH_VARIANT=rocm used to be ignored on Windows; with this PR it
would fail readiness on update and auto-repair into a multi-GB download from
new hosts. A successful install now records its torch build (.runtime-torch);
a runtime never installed with Windows ROCm goes to the setup screen instead
of auto-repair. ROCm on Windows ARM64 reports not-ready instead of rejecting
readiness, and the setup screen names repo.radeon.com as the Windows ROCm
torch source.

* fix(rocm): resolve ROCm packages from site-packages and remember a failed GPU probe

package_root() finds torch, ctranslate2 and the ROCm SDK packages through
their distribution records in this interpreter's site-packages, so a stray
folder in the working directory of a -m child can't choose the DLL
directories. A failed HIP CT2 probe (up to 90 s) is remembered for the
process instead of 5 s, so catalogue refreshes don't re-run it; a restart,
recipe or package change runs it again.

* docs(rocm): record the owner-approved Windows ROCm endpoints and how setup checks them

* docs(structure): count the pyannote compat service module

* test(rocm): pin the host architecture in the setup-reuse readiness test

* fix(repo): untrack the committed .venv symlink and ignore symlinked envs; follow the new ROCm copy in the GPU panel test

.gitignore's '.venv/' only matches directories, so a worktree's symlinked
.venv was committed and CI's uv sync failed on it. Ignore '.venv' without the
slash and add a guard that no local environment path is ever tracked.

* test(audio-io): allow the pyannote torchaudio shim, which applies the gate's own fix to third-party calls

---------

Co-authored-by: debpalash <4178343+debpalash@users.noreply.github.com>
2026-10-26 07:29:37 +05:30
debpalash 73ed3323e4 test(dev): cover launcher shutdown with platform-specific paths 2026-10-26 01:16:32 +05:30
debpalash 7a3c6c0096 fix(dev): preserve bundles across concurrent launches and restarts 2026-10-26 01:10:01 +05:30
debpalash 67723fb735 fix(dev): keep only the current branded macOS dev bundle instead of one per version 2026-10-26 00:46:02 +05:30
debpalash 129c429519 fix(dev): quit the old dev app through its normal path before freeing ports; Windows closes politely; document side-by-side ports 2026-10-25 19:09:20 +05:30
debpalash 1eb674e5e1 fix(dev): the newest bun dev replaces an earlier dev instance instead of failing on port 3902 2026-10-25 18:37:53 +05:30
velixio bfaf8a5c0a feat(updates): add an opt-in Beta release channel
Beta follows vX.Y.Z-beta.N prereleases cut from main and rolls onto the next
stable release; Stable stays the default. Betas are GitHub prereleases (never
latest), ship an electron-beta-* feed and :beta Docker tags, and skip the Snap
Store and Tauri sunset feeds.
2026-10-22 17:27:54 +05:30
debpalash b5cf3cd064 fix(electron): clear an invalid macOS dev bundle cache before rebuilding it 2026-10-07 09:47:53 +05:30
Palash Debnath b82bf0d60b fix: preserve CPU source installs and initialize Electron startup 2026-10-04 22:10:49 +05:30
Palash Debnath c4d63ef207 fix(app): align Electron, backend, packaging and documentation (#2578)
Align maintained Electron setup, docs, model licence descriptions, contact details, and CI syntax checks with the current application.
2026-10-03 06:24:59 +05:30
Palash Debnath 1ee696553f feat: complete workspace contributors, website previews and local agent interface 2026-09-28 14:32:57 -07:00
debpalash 59b2798d3e fix(electron): simplify home and integrations 2026-09-27 06:10:40 +05:30
Palash Debnath a7884e978b fix: normalize macOS dev bundle cache path 2026-09-26 12:07:46 -07:00
Palash Debnath 18147f11a7 Merge remote-tracking branch 'origin/main' into chore/electron-only 2026-09-26 12:06:18 -07:00
debpalash 91c5aa3dd8 fix(electron): harden macOS bundle branding 2026-09-27 00:04:47 +05:30
Palash Debnath d6348b56f2 chore: retire legacy Tauri app and UI 2026-09-26 11:26:48 -07:00
debpalash 58b61285c9 fix(electron): brand macOS development bundle 2026-09-26 23:50:22 +05:30
Palash Debnath 47a06c03cf fix(electron): ship FUSE-free AppImages with zsync updates (#2329)
* feat(electron): publish AppImage zsync updates (#2327)

* Use FUSE-independent AppImage runtime (#2328)

* Launch packaged AppImage in Linux smoke checks

* Postprocess AppImages for source installs and dist builds

* Keep external AppImage updates on the matching release channel

* Run Linux source install smoke against the PR main revision

* Accept shallow PR commits in installer smoke source mirror
2026-09-25 03:08:56 +05:30