Clone your own voice on your own computer: speak any text in 60+ languages and dub videos into another language in your voice. Fully local. Early version.
Building the desktop installers
One script per OS builds the Rust app (crates/desktop/) and packages it with
cargo-packager using crates/desktop/Packager.toml. Output goes to
dist/ (git-ignored). Each script installs cargo-packager itself when it is missing.
| OS | Script | Output |
|---|---|---|
| Linux | ./scripts/build/build-linux.sh |
.AppImage + .deb |
| macOS | ./scripts/build/build-mac.sh (Apple Silicon; --universal adds Intel, which the engine cannot use) |
.app + .dmg |
| Windows | .\scripts\build\build-win.ps1 (-Format msi for an MSI) |
setup .exe (Inno Setup, default) or .msi |
Run them from anywhere; they locate the repo from their own path. Pass --help (Linux/macOS) to see the options.
Installers are built on the OS they target (no cross-compiling).
What goes into an installer
The release binary plus the runtime resources, staged by scripts/build/stage_resources.py into
crates/desktop/target/bundle-resources/ (no __pycache__, venvs or data):
engine/src/the Python enginepresets/guided reading presetstools/setup/runtime setup (the app runs it on first launch)contract/the engine protocolsetup.sh,setup.cmd,DISCLAIMER.md,THIRD_PARTY_NOTICES.mdwhen present
The heavy parts (Python virtualenvs, Applio, model weights, several GB) are not bundled: first run
downloads them into the per-user data directory. The header of crates/desktop/Packager.toml documents where each
installer puts the resources and the lookup order the app uses to find them.
The icon set in tools/release/icons/ is committed. To regenerate it:
uv run --with pillow python tools/release/make_icons.py.
Prerequisites
Common to all systems: Rust (stable, via rustup) and uv (runs the staging script). The first packaging run needs internet access (cargo-packager downloads its tools).
Linux (Debian/Ubuntu names)
sudo apt install build-essential pkg-config libasound2-dev libxkbcommon-dev libwayland-dev libx11-dev \
libxcursor-dev libxi-dev libxrandr-dev libvulkan-dev file
.debneedsdpkg-deb(preinstalled on Debian/Ubuntu). On other distributions build only the AppImage:./scripts/build/build-linux.sh --formats appimage.- The AppImage tools (linuxdeploy) are downloaded on first use and run with
APPIMAGE_EXTRACT_AND_RUN=1, so FUSE is not required. The script setsNO_STRIP=truebecause linuxdeploy's bundledstripfails on current toolchains. - To run the AppImage itself, the target machine needs a Vulkan-capable GPU driver (the UI renders through wgpu).
macOS
- Xcode command line tools:
xcode-select --install - Rust via rustup (the script adds
aarch64-apple-darwin, andx86_64-apple-darwinfor--universal). - Minimum supported macOS is 13.0. Apple Silicon is the supported target (GPU acceleration uses Metal/MPS).
- Unsigned by default. For a signed (and notarized) build export
APPLE_SIGNING_IDENTITYplus the notarization variables listed in the header ofbuild-mac.sh. An unsigned app copied from the.dmgneedsxattr -dr com.apple.quarantine "/Applications/Mimvox.app"once.
Windows
- Rust with the MSVC toolchain (
rustup default stable-x86_64-pc-windows-msvc). - Visual Studio Build Tools with the "Desktop development with C++" workload:
winget install Microsoft.VisualStudio.2022.BuildTools --override "--wait --passive --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended" uv:powershell -ExecutionPolicy Bypass -c "irm https://astral.sh/uv/install.ps1 | iex"- If PowerShell blocks the script, run
Set-ExecutionPolicy -Scope Process -Bypassonce in that window. - The setup
.exeis built with Inno Setup byscripts/build/inno.py: a pinned, portable Inno Setup is downloaded once (checked against its SHA-256) intocrates\desktop\target\inno($env:MIMVOX_INNO_CACHEoverrides). The wizard is dark in the app's palette, its pictures are drawn at build time from the app icon, and the uninstaller asks what to remove (the app, also the speech engine, or everything). The installer is per-user (no admin rights). - The
.msi(-Format msi) is made by cargo-packager with WiX (downloaded on first use); it is not shipped in releases. - With
$env:CARGO_PACKAGER_SIGN_PRIVATE_KEY(and_PASSWORD) set, the setup.exegets the.sigthe app's updater checks.
Releasing a new version
Bump version in crates/desktop/Cargo.toml and crates/desktop/Packager.toml (the scripts refuse to build when
they differ), then run the script on each OS.