The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(ci): Linux-AppImage braucht LD_LIBRARY_PATH beim Bau, Paketpruefung ergaenzt
purpleb33f2cdb06be
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 412b9772..6ee3cc09 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -436,4 +436,20 @@ jobs:# header. Deliberately the last word on whether this commit is shippable.- name: Tauri build (unsigned — exit code is the verdict)shell: bash- run: bash scripts/ci-tauri-build.sh+ run: |+ # K1-18 (lu-301/e2e/linux/BERICHT.md): release.yml's real, non-stub+ # Linux build measured that linuxdeploy resolves lu-llama-server's+ # NEEDED entries via the standard ld search path, not via the+ # staged usr/lib/.../llama/ location, and fails without+ # LD_LIBRARY_PATH pointed at it. This job stubs the sidecar as a+ # zero-byte file (see "Stub llama-server sidecar" above), so+ # whether linuxdeploy hits the identical failure here was NOT+ # independently measured on that stub — this only mirrors the+ # release-lane fix defensively, for the same reason, so this gate+ # and the real release build cannot silently diverge on it. Empty+ # on windows-latest, where LD_LIBRARY_PATH is meaningless.+ if [ "${{ matrix.platform }}" = "ubuntu-22.04" ]; then+ triple="$(rustc -vV | awk '/^host:/{print $2}')"+ export LD_LIBRARY_PATH="$GITHUB_WORKSPACE/src-tauri/resources/llama/$triple${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"+ fi+ bash scripts/ci-tauri-build.shdiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex f21bde82..a99dc291 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -446,6 +446,21 @@ jobs:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}+ # K1-18 (lu-301/e2e/linux/BERICHT.md, section "K1-18"): measured on a+ # real Ubuntu 24.04 box, `tauri build --bundles appimage` on this+ # project's Linux config makes linuxdeploy resolve+ # lu-llama-server's NEEDED entries (libllama-server-impl.so etc.)+ # through the standard ld search path, NOT through the actual+ # staged location (usr/lib/Locally Uncensored/llama/), and it fails+ # hard: "ERROR: Could not find dependency: libllama-server-impl.so".+ # With LD_LIBRARY_PATH pointed at the staged companions directory,+ # the identical linuxdeploy invocation succeeds and bundles every+ # ggml-* companion. tauri-action's own `tauri build` invocation does+ # not set this by itself, so this step (which is where linuxdeploy+ # actually runs, on GitHub's real release lane) needs it set+ # explicitly. Empty on windows-latest: LD_LIBRARY_PATH has no+ # meaning there and an empty env var is harmless.+ LD_LIBRARY_PATH: ${{ matrix.platform == 'ubuntu-22.04' && format('{0}/src-tauri/resources/llama/{1}', github.workspace, matrix.sidecar_triple) || '' }}with:tagName: ${{ github.event.release.tag_name || github.event.inputs.tag || 'v1.3.0' }}releaseName: 'LU ${{ github.event.release.tag_name || github.event.inputs.tag }}'@@ -485,6 +500,50 @@ jobs:# is merged on top of the checked-in config by `tauri build`.args: --config src-tauri/tauri.release.conf.json ${{ matrix.args }}+ # K1-18 (lu-301/e2e/linux/BERICHT.md): the LD_LIBRARY_PATH fix above+ # only proves linuxdeploy did not hard-fail; K1-18 itself measured that+ # linuxdeploy's SECOND error ("Failed to deploy dependencies for+ # existing files") is NOT fatal, it still exits 0, which is the+ # suspected reason the real 3.0.0 AppImage shipped once with no+ # CPU-dispatch companions at all despite a green build. Nothing in+ # this workflow inspected the BUILT artifact before this step existed+ # — the boot-smoke step above only checks the pre-bundle staging+ # directory, never what linuxdeploy actually packed. If linuxdeploy+ # ever silently drops a companion again, this is what turns that red:+ # extract the real .AppImage this run just produced and diff its+ # bundled companions against what build-llama.sh staged.+ - name: Verify built AppImage carries every sidecar companion (K1-18)+ if: matrix.platform == 'ubuntu-22.04'+ shell: bash+ timeout-minutes: 5+ run: |+ set -euo pipefail+ appimage_rel="$(find src-tauri/target -type f -iname '*.AppImage' -print -quit)"+ [ -n "$appimage_rel" ] || { echo "FAIL: no .AppImage found under src-tauri/target after the build (K1-18)" >&2; exit 1; }+ appimage="$(realpath "$appimage_rel")"+ chmod +x "$appimage"+ workdir="$RUNNER_TEMP/appimage-extract"+ rm -rf "$workdir"+ mkdir -p "$workdir"+ # --appimage-extract needs no FUSE (unlike running the AppImage+ # normally), which a bare Actions runner does not reliably have.+ ( cd "$workdir" && "$appimage" --appimage-extract >/dev/null )+ extracted_llama_dir="$(find "$workdir/squashfs-root/usr/lib" -mindepth 1 -maxdepth 3 -type d -iname 'llama' -print -quit)"+ if [ -z "$extracted_llama_dir" ]; then+ echo "FAIL: no .../usr/lib/.../llama directory inside the extracted AppImage at all; linuxdeploy dropped the whole sidecar companions directory (K1-18, lu-301/e2e/linux/BERICHT.md)" >&2+ exit 1+ fi+ missing=0+ for f in "src-tauri/resources/llama/${{ matrix.sidecar_triple }}"/*; do+ base="$(basename "$f")"+ if [ ! -e "$extracted_llama_dir/$base" ]; then+ echo "FAIL: $base is staged in src-tauri/resources/llama/${{ matrix.sidecar_triple }} but MISSING from the built AppImage ($extracted_llama_dir); linuxdeploy can drop a companion silently and still exit 0 (K1-18)" >&2+ missing=$((missing + 1))+ fi+ done+ [ "$missing" -eq 0 ] || exit 1+ echo "OK: every staged sidecar companion is present inside the built AppImage ($extracted_llama_dir)"+# The promise above, made real for every trigger. Runs after the binaries are# attached, so a release published as a full release is put back before# anyone is offered it, and never touches the release that is already Latest.