Repository navigation
Installers
Build each installer on the matching host platform. Local builds are unsigned unless noted otherwise.
Build on macOS after installing the Tauri prerequisites and Tesseract with German, English, French, Italian, and Spanish language data. See Development Setup for the OCR setup details:
pnpm tauri buildThis creates the macOS app and disk image in src-tauri/target/host-<host-triple>/release/bundle/.
macOS Intel runtime support is unverified. On Catalina 10.15.7, the app opened to a gray window without rendering; Intel runtime testing remains deferred. A successful build does not establish runtime compatibility.
Build on Linux after installing the Tauri prerequisites, Tesseract, and German, English, French, Italian, and Spanish language data. The dev container includes these dependencies. Run:
pnpm tauri buildThis creates AppImage, Debian (.deb), and RPM packages under src-tauri/target/host-<host-triple>/release/bundle/.
Build on a native Windows x64 or ARM64 host that matches the target architecture. Use PowerShell (regular PowerShell or Command Prompt is enough); the build wrapper locates Visual Studio and initializes its developer environment itself. Do not use WSL or the Dev Container for a native Windows build. The Dev Container cross-build is the only cross-build path, and it is limited to unsigned diagnostic NSIS installers.
-
Node.js 22, Corepack, and the pnpm setup described in Development Setup.
-
Rust for the Windows host architecture with the MSVC toolchain. On ARM64,
rustc -vVmust reporthost: aarch64-pc-windows-msvc; on x64 it must reporthost: x86_64-pc-windows-msvc. -
Windows ARM64 builds also need
clang.exefor the lockedringdependency. In Visual Studio Installer, select C++ Clang tools for Windows under Desktop development with C++. The build wrapper searches Visual Studio's LLVM tools and adds the compiler toPATH. -
Visual Studio or Visual Studio Build Tools. In Visual Studio Installer, select Desktop development with C++, the Windows SDK, and the MSVC C++ compiler, headers, and libraries for the host architecture. On ARM64, make sure the native ARM64 C++ tools are selected; x64-emulated tools are not sufficient. The Visual Studio Installer's
vswhere.exeandVC\Auxiliary\Build\vcvarsall.batmust be present. See the Tauri Windows prerequisites and Microsoft C++ Build Tools. -
Git for Windows, which provides Git Bash. The wrapper locates and verifies Git Bash itself, then starts it after initializing Visual Studio; you do not need to open a Git Bash window or add Bash to
PATHfor a standard installation. If Git for Windows is installed in a custom location and the wrapper cannot find it, add itscmdorbinfolder to this PowerShell session'sPATH. -
CMake, Ninja,
cl,dumpbin,curl,tar, andrgmust be available to the build shell. To install CMake with Visual Studio, open Visual Studio Installer, select Modify for the installed instance, ensure Desktop development with C++ is selected, then open Individual components and select C++ CMake tools for Windows. Visual Studio can also provide Ninja: build system under Individual components. If either is missing fromPATH, install it with WinGet:winget show --id Kitware.CMake --exact --source winget winget install --id Kitware.CMake --exact --source winget winget show --id Ninja-build.Ninja --exact --source winget winget install --id Ninja-build.Ninja --exact --source winget
After installation, open a new PowerShell window and confirm that
cmake --versionandninja --versionprint versions. Visual Studio's bundled CMake may not be on the regularPATH; the wrapper adds its standard bundled-tools directory to the build-shellPATHand verifies that CMake and Ninja are available before building. -
Tesseract language data containing
deu.traineddata,eng.traineddata,fra.traineddata,ita.traineddata, andspa.traineddata. You do not need an installed Tesseract executable ifEPIKRISE_TESSDATA_DIRpoints to that data directory.
Run the following in PowerShell from the repository root. Do not run pnpm windows:setup here; that command provisions the separate Linux Dev Container cross-build.
$pnpmShimDir = Join-Path $env:LOCALAPPDATA 'Epikrise\corepack'
New-Item -ItemType Directory -Path $pnpmShimDir -Force | Out-Null
corepack.cmd enable --install-directory $pnpmShimDir pnpm
$env:Path = "$pnpmShimDir;$env:Path"
node --version
pnpm.cmd --version
rustc -vV
pnpm.cmd install --frozen-lockfileThe user-local Corepack shim avoids writing under C:\Program Files. Use pnpm.cmd in PowerShell to avoid a blocked pnpm.ps1. The version commands should report Node 22 and pnpm 12.15.0, and rustc -vV must report the native host triple listed above. Keep using the same PowerShell session for the rest of the setup and the build so the environment variables and the pnpm shim remain available.
Set EPIKRISE_TESSDATA_DIR to a folder containing the five language files. If Tesseract is installed with all five languages, point it to that installation's tessdata folder, for example:
$env:EPIKRISE_TESSDATA_DIR = 'C:\Program Files\Tesseract-OCR\tessdata'
Test-Path (Join-Path $env:EPIKRISE_TESSDATA_DIR 'deu.traineddata')
Test-Path (Join-Path $env:EPIKRISE_TESSDATA_DIR 'eng.traineddata')
Test-Path (Join-Path $env:EPIKRISE_TESSDATA_DIR 'fra.traineddata')
Test-Path (Join-Path $env:EPIKRISE_TESSDATA_DIR 'ita.traineddata')
Test-Path (Join-Path $env:EPIKRISE_TESSDATA_DIR 'spa.traineddata')All five Test-Path commands must print True. Otherwise, download the project-pinned language files into a user-local folder and verify their checksums:
$tessdataDir = Join-Path $env:LOCALAPPDATA 'Epikrise\tessdata'
New-Item -ItemType Directory -Path $tessdataDir -Force | Out-Null
$tessdataCommit = '65727574dfcd264acbb0c3e07860e4e9e9b22185'
$expectedSha256 = @{
deu = '19d219bbb6672c869d20a9636c6816a81eb9a71796cb93ebe0cb1530e2cdb22d'
eng = '7d4322bd2a7749724879683fc3912cb542f19906c83bcc1a52132556427170b2'
fra = 'ced037562e8c80c13122dece28dd477d399af80911a28791a66a63ac1e3445ca'
ita = 'b8f89e1e785118dac4d51ae042c029a64edb5c3ee42ef73027a6d412748d8827'
spa = '6f2e04d02774a18f01bed44b1111f2cd7f3ba7ac9dc4373cd3f898a40ea6b464'
}
foreach ($language in @('deu', 'eng', 'fra', 'ita', 'spa')) {
$file = Join-Path $tessdataDir "$language.traineddata"
$url = "https://raw.githubusercontent.com/tesseract-ocr/tessdata_fast/$tessdataCommit/$language.traineddata"
Invoke-WebRequest -Uri $url -OutFile $file
$actualSha256 = (Get-FileHash -LiteralPath $file -Algorithm SHA256).Hash.ToLowerInvariant()
if ($actualSha256 -ne $expectedSha256[$language]) {
throw "$language.traineddata SHA-256 mismatch."
}
}
$env:EPIKRISE_TESSDATA_DIR = $tessdataDirThe data is stored under your local application data directory, not in the repository.
To start the app for development, run pnpm.cmd tauri dev.
Run one command matching the Windows host.
On Windows ARM64:
.\scripts\build-native-windows.cmd arm64 diagnosticOn Windows x64:
.\scripts\build-native-windows.cmd x64 diagnosticThe wrapper locates Git Bash and checks that the Rust host, MSVC host, MSVC target, and requested target architecture all match. It returns a non-zero exit code if setup, compilation, bundling, or architecture verification fails.
The unsigned diagnostic installer is written under src-tauri/target/host-<host-triple>/<target>/release/bundle/. The first build needs network access to download and checksum-verify the OCR source archives and PDFium. Diagnostic builds disable release LTO, use 16 codegen units, and compile at optimization level 2 to reduce peak memory use. Signed release builds keep the optimized release profile in src-tauri/Cargo.toml.
Native-only Tauri build and dev commands reject custom runners such as cargo-xwin; the default cargo runner remains available. They also validate cross-target Cargo configuration from Cargo config files, CARGO_BUILD_TARGET, and forwarded Cargo --config overrides against the effective command target before OCR preparation. The generic pnpm tauri build and pnpm tauri dev commands also initialize Visual Studio automatically from a regular PowerShell, Command Prompt, or Git Bash session. The wrapper commands above remain the recommended path for diagnostic native builds.
Build caches are kept between runs: Cargo artifacts live under src-tauri/target/host-<host-triple>/, and the native OCR CMake/Ninja cache lives under %USERPROFILE%\.cache\epikrise\windows-ocr-native-msvc\. Cargo reuses outputs that are still up to date. The diagnostic profile changed recently, so its first run rebuilds artifacts for that profile. Avoid cargo clean or deleting these cache directories unless you intentionally want a full rebuild.
If compilation reports that vcruntime.h cannot be found, the installed MSVC toolset or its C++ headers are missing or inconsistent. Use Visual Studio Installer to add or repair the C++ build tools and Windows SDK for the host architecture, open a new PowerShell window, and rerun the native wrapper.
Build diagnostic Windows NSIS installers from the native Linux ARM64 Dev Container. CPU emulation and Linux x64 hosts are not supported. The build needs LLVM, CMake, Ninja, NSIS, cargo-xwin, and Tauri's NSIS Restart Manager include.
Run setup in an interactive terminal. It installs cargo-xwin if needed, then shows the Microsoft SDK/CRT license link. Review the license and type ACCEPT to allow downloading the pinned Windows SDK package 10.0.26100 and Visual C++ toolset component 14.44.17.14. This acceptance gates only that download, not the cargo-xwin installation. The interactive path is for local setup; GitHub Actions uses the separate --ci path only when EPIKRISE_WINDOWS_SDK_LICENSE_APPROVED=true, and the manual setup path is not used in CI.
pnpm windows:setupThen explicitly opt in for the current shell and build one architecture or both:
export EPIKRISE_ALLOW_LINUX_WINDOWS_CROSS_BUILD=true
pnpm windows:build:x64
pnpm windows:build:arm64
pnpm windows:buildThis path is limited to unsigned diagnostic NSIS builds. The scripts reject CI, unsupported hosts, release mode, MSI/MSIX, and other non-NSIS package selections before downloading assets or compiling. Release builds, generic pnpm tauri build, and GitHub Actions never cross-compile; they remain native. See Cross-platform Actions builds for the Actions path.
The installers are written under src-tauri/target/host-<host-triple>/<target>/release/bundle/nsis/. Each includes the offline WebView2 installer, adding about 127 MB. The first build downloads and verifies the host-matched LLVM-MinGW archive, Tesseract and its dependencies, and PDFium after the setup license gate; later builds reuse isolated host/target caches. Tesseract's CMake TIFF capability probe gets an explicit cross-build result, so no Windows executable runs on Linux. The app's OCR path passes PNG images, so TIFF input is not needed.
A successful cross-build does not verify installation or runtime behavior. For runtime validation, use a native host for each target you intend to support: install and launch the package, verify PDFium loading, run synthetic German and English OCR, check credentials and clipboard, then uninstall. The NSIS installer is configured for offline WebView2 installation in src-tauri/tauri.windows.conf.json, so a separate install test without WebView2 is not required. macOS Intel runtime support remains explicitly unverified and deferred.
To uninstall an installed Windows build, use Settings > Apps > Installed apps > Epikrise > Uninstall. Running the NSIS setup executable for the same version opens a maintenance page. Choosing its Uninstall option runs the uninstaller. If the uninstaller completes, setup continues and installs the same version again; if you cancel the uninstaller, setup returns to the choice page.
Epikrise wiki
Using Epikrise
Developing
Maintaining