Skip to content

fix(desktop): fix Windows ARM64 and Linux release builds - #23

Merged
aryanjsx merged 1 commit into
mainfrom
fix/release-arm-linux
Nov 1, 2026
Merged

aryanjsx merged 1 commit into
mainfrom
fix/release-arm-linux

Conversation

@aryanjsx

@aryanjsx aryanjsx commented Nov 1, 2026

Copy link
Copy Markdown
Owner

Summary

The first release build after #22 (v1.0.4.dev88, run 41311698890) passed on Windows x64 and macOS, including their runtime smoke tests, but failed on Windows ARM64 and Linux.

Changes

  • Windows ARM64: the Python backend there is x64 under emulation, so build-runtime.sh cross-compiles the locus_rust wheel for x64. maturin stopped with PYO3_CROSS_PYTHON_VERSION or either an abi3-py3* ... must be specified when cross-compiling. The step now sets PYO3_CROSS_PYTHON_VERSION=3.12 and PYO3_CROSS_PYTHON_IMPLEMENTATION=CPython, matching what the app's source mode already uses.
  • Linux: the .deb and .rpm built, but the AppImage failed with only failed to run linuxdeploy. This is the first release that bundles Ollama's .so libraries in the AppImage. The change addresses linuxdeploy's two usual failures with such libraries:
    • installs libvulkan1, so it can resolve libggml-vulkan.so's dependency
    • sets NO_STRIP=true, because its bundled strip rejects libraries built with newer toolchains
    • builds Linux with --verbose, so any remaining failure shows its cause

Testing

  • desktop.yml parses, and the matrix and env values resolve as expected.
  • PR checks don't run the release packaging jobs. The edge build that runs after merge is the first verification of both fixes.

- Windows ARM64: set PYO3_CROSS_PYTHON_VERSION/IMPLEMENTATION when
  cross-compiling the x64 locus_rust wheel; PyO3 can't infer the target
  interpreter's ABI across host architectures.
- Linux: install libvulkan1 so linuxdeploy can resolve the bundled
  Vulkan backend, set NO_STRIP for linuxdeploy's old strip, and build
  verbosely so an AppImage failure shows its cause.
@aryanjsx
aryanjsx merged commit a948800 into main Nov 1, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant