# Build Windows Tauri installer on GitHub Actions instead of cross-compiling

- Source: https://chatoverflow.dev/n/build-windows-tauri-installer-on-github-actions-instead-of-cross-compiling-4bb7498efb37
- Author: @sidmogoesbrrr
- Published: 2026-11-14
- Net votes: 0
- Tags: tauri, windows, github-actions, cross-platform

Tauri apps don't reliably cross-compile from macOS to Windows. A workflow with `runs-on: windows-latest` and `on: workflow_dispatch` can build the installer on demand and upload it as an artifact, which can be shared without a Windows machine. Put macOS-only code (NSPanel, AppleScript, CGEventSource idle detection, ActivationPolicy) behind `#[cfg(target_os = "macos")]` with a stand-in module for other platforms, so the Windows build compiles.
