feat(ci): cross-compile Windows installer on Linux and bundle Windows git-lfs #56

Merged
Christoph merged 1 commit from nw-win-build into main 2026-09-27 19:36:36 +00:00
Owner

Switch CI jobs to containerized runners and add cross-compilation support so a Linux host can build a Windows NSIS installer and include a Windows git-lfs sidecar.

  • Workflow: use docker containers (node:22-bookworm, archlinux:base-devel) and install cross-compile deps (nsis, clang/lld/llvm, etc.), add env vars (WINDOWS_TARGET, GITTY_TARGET_TRIPLE, TAURI_BUILD_TARGET, GIT_LFS_VERSION), install Rust target and cargo-xwin, and run tauri with cargo-xwin/--target.
  • Download and verify Windows git-lfs archive in the workflow, expose the found git-lfs path via GIT_LFS_BINARY, and add a verification step to ensure the bundled sidecar is a Windows PE build.
  • cicd_tool: make ARTIFACT_ROOT respect TAURI_BUILD_TARGET so cross-compiled bundles under target//release/bundle are found.
  • scripts/prepare-git-lfs-sidecar.mjs: pick the target triple from environment, choose .exe when target is Windows, detect binary format (PE/ELF/Mach-O) and only accept matching git-lfs builds, and avoid chmod on Windows targets.
  • Replace PowerShell version-bump push logic with POSIX shell in workflows (robust branch resolution and rebase-before-push).
Switch CI jobs to containerized runners and add cross-compilation support so a Linux host can build a Windows NSIS installer and include a Windows git-lfs sidecar. - Workflow: use docker containers (node:22-bookworm, archlinux:base-devel) and install cross-compile deps (nsis, clang/lld/llvm, etc.), add env vars (WINDOWS_TARGET, GITTY_TARGET_TRIPLE, TAURI_BUILD_TARGET, GIT_LFS_VERSION), install Rust target and cargo-xwin, and run tauri with cargo-xwin/--target. - Download and verify Windows git-lfs archive in the workflow, expose the found git-lfs path via GIT_LFS_BINARY, and add a verification step to ensure the bundled sidecar is a Windows PE build. - cicd_tool: make ARTIFACT_ROOT respect TAURI_BUILD_TARGET so cross-compiled bundles under target/<triple>/release/bundle are found. - scripts/prepare-git-lfs-sidecar.mjs: pick the target triple from environment, choose .exe when target is Windows, detect binary format (PE/ELF/Mach-O) and only accept matching git-lfs builds, and avoid chmod on Windows targets. - Replace PowerShell version-bump push logic with POSIX shell in workflows (robust branch resolution and rebase-before-push).
Switch CI jobs to containerized runners and add cross-compilation support so a Linux host can build a Windows NSIS installer and include a Windows git-lfs sidecar.

- Workflow: use docker containers (node:22-bookworm, archlinux:base-devel) and install cross-compile deps (nsis, clang/lld/llvm, etc.), add env vars (WINDOWS_TARGET, GITTY_TARGET_TRIPLE, TAURI_BUILD_TARGET, GIT_LFS_VERSION), install Rust target and cargo-xwin, and run tauri with cargo-xwin/--target.
- Download and verify Windows git-lfs archive in the workflow, expose the found git-lfs path via GIT_LFS_BINARY, and add a verification step to ensure the bundled sidecar is a Windows PE build.
- cicd_tool: make ARTIFACT_ROOT respect TAURI_BUILD_TARGET so cross-compiled bundles under target/<triple>/release/bundle are found.
- scripts/prepare-git-lfs-sidecar.mjs: pick the target triple from environment, choose .exe when target is Windows, detect binary format (PE/ELF/Mach-O) and only accept matching git-lfs builds, and avoid chmod on Windows targets.
- Replace PowerShell version-bump push logic with POSIX shell in workflows (robust branch resolution and rebase-before-push).
Sign in to join this conversation.
No description provided.