OGAD icon indicating copy to clipboard operation
OGAD copied to clipboard

Linux build ?

Open KaKi87 opened this issue 4 months ago • 4 comments

Hi,

Since this is an Electron app and there's already a Linux build script, it would be nice to have Linux build releases.

Thanks

KaKi87 avatar Jul 09 '26 17:07 KaKi87

Yup, in the roadmap. It needs proper testing, so just trying to find the time to do that!

alichherawalla avatar Jul 10 '26 22:07 alichherawalla

+1 for Linux. I tried building from source on Arch Linux (x86_64, kernel 7.2, Node 26 via mise) at e7ddef74 and wanted to share what currently blocks it, in case it helps scope the work:

  1. Shared packages are not public. package.json depends on six file:../shared/packages/* packages (@offgrid/models, ui, use, speech, sync, automation). off-grid-ai/shared returns 404 for outside users and the packages are not on npm, so npm install cannot succeed. (Filed separately as #160 since it affects every platform.)
  2. No Linux runtimes. Everything in resources/bin (llama.cpp, whisper.cpp, stable-diffusion.cpp, ffmpeg) is Mach-O arm64. Windows has scripts/fetch-win-binaries.ps1; an equivalent fetch-linux-binaries.sh pulling the upstream Linux builds (CPU, Vulkan, CUDA variants) would cover most of it.
  3. scripts/stage-native.mjs exits early on non-darwin, which is fine, but the Swift helpers (ocr, text-extractor, dictation-hotkey, meeting-recorder, …) have no Linux counterparts. A first Linux release could ship the free core (chat, gateway, image, voice) and leave those Pro features disabled.
  4. electron-builder.yml already has a linux: target (AppImage + deb) and npm run build:linux exists, so packaging looks mostly ready.

Even a headless gateway-only Linux build (OFFGRID_SERVER_ONLY=1) would be very useful for homelab servers. Happy to test builds on Arch/Wayland (Hyprland) with an NVIDIA GPU.

Rallxp avatar Sep 25 '26 19:09 Rallxp

Hi @Rallxp,

Thanks for reporting this. Strangely I was working on a linux release earlier today: https://github.com/off-grid-ai/OGAD/pull/159

Let me fix the readme, and the installation so that it runs even without shared. Would be happy for you to take over the linux work really.

alichherawalla avatar Sep 25 '26 21:09 alichherawalla

this is done. both linux and windows builds are live and with CUDA support

alichherawalla avatar Oct 16 '26 08:10 alichherawalla