From 5f21c17def028abe4e8d3285412a8688e4061239 Mon Sep 17 00:00:00 2001
From: nodemode-ai
Date: Fri, 27 Nov 2026 01:00:48 -0500
Subject: [PATCH 1/2] fix(build): the AppImage tool is shown the engine's own
library folders, and the engine inside the AppImage is checked
---
setup/build_linux_app | 25 ++++++++++++++++++++++---
src-tauri/HASHOUT_LOG.md | 15 +++++++++++++++
2 files changed, 37 insertions(+), 3 deletions(-)
diff --git a/setup/build_linux_app b/setup/build_linux_app
index 6c86c57..54bdb2a 100755
--- a/setup/build_linux_app
+++ b/setup/build_linux_app
@@ -118,14 +118,33 @@ fi
say "Building the app bundle (this compiles Rust; first run takes a while)"
cd src-tauri
npx --yes @tauri-apps/cli@2.12.3 build --bundles "$BUNDLES" -- --locked
+appimage() {
+ engine=binaries/formdam-backend
+ folders=""
+ for lib in $(find "$engine" -type f -name '*.so*' -exec ldd {} + 2>/dev/null | awk '/not found/ {print $1}' | sort -u); do
+ folder=$(find "$PWD/$engine" -type f -name "$lib" -path '*.libs/*' -printf '%h\n' -quit)
+ [ -n "$folder" ] || folder=$(find "$PWD/$engine" -type f -name "$lib" -printf '%h\n' -quit)
+ [ -n "$folder" ] || { echo "AppImage: the engine needs $lib and no folder of the engine holds it"; continue; }
+ case ":$folders:" in *":$folder:"*) ;; *) folders="${folders:+$folders:}$folder" ;; esac
+ done
+ [ -z "$folders" ] || echo "AppImage: engine folders put on the library path for this step: $folders"
+ ( [ -z "$folders" ] || export LD_LIBRARY_PATH="$folders${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
+ NO_STRIP=true npx --yes @tauri-apps/cli@2.12.3 build --verbose --bundles appimage -- --locked ) || return 1
+ inside=target/release/bundle/appimage/FormDAM.AppDir/usr/lib/FormDAM/formdam-backend
+ [ -x "$inside/formdam-backend" ] || { echo "ERROR: the AppImage's app folder is not on disk, so the engine inside it cannot be checked"; return 1; }
+ lost=$(find "$inside" -type f -name '*.so*' -exec env LD_LIBRARY_PATH="$PWD/$inside/_internal" ldd {} + 2>/dev/null | awk '/not found/ {print $1}' | sort -u | tr '\n' ' ')
+ [ -z "$lost" ] || { echo "ERROR: inside the AppImage the engine's libraries cannot find: $lost"; return 1; }
+ "$inside/formdam-backend" --selfcheck || { echo "ERROR: inside the AppImage the engine fails its self-check"; return 1; }
+}
if [ "$APPIMAGE" != no ]; then
say "Building the AppImage (the same program and engine in one file that needs no install)"
step=target/appimage-step.log
- if NO_STRIP=true npx --yes @tauri-apps/cli@2.12.3 build --verbose --bundles appimage -- --locked > "$step" 2>&1; then
- echo "AppImage: built"
+ if appimage > "$step" 2>&1; then
+ grep '^AppImage: ' "$step" || true
+ echo "AppImage: built, and the engine inside it passes its self-check"
else
echo "---- AppImage step: the lines that name a problem ----"
- grep -n -iE 'error|could not|cannot|not found|no such|failed|denied' "$step" | tail -n 40 || true
+ grep -n -iE 'error|could not|cannot|not found|no such|failed|denied' "$step" | grep -v 'copyright files' | tail -n 40 || true
echo "---- AppImage step: its last 60 lines (all of it is in $PWD/$step) ----"
tail -n 60 "$step" || true
echo "---- AppImage step: end ----"
diff --git a/src-tauri/HASHOUT_LOG.md b/src-tauri/HASHOUT_LOG.md
index 6b53e24..f423739 100644
--- a/src-tauri/HASHOUT_LOG.md
+++ b/src-tauri/HASHOUT_LOG.md
@@ -1,6 +1,21 @@
# src-tauri HASHOUT_LOG · formDAM
current: v1.27.2 · 2026-10-22
+### ../setup/build_linux_app · the AppImage tool is shown where the engine keeps its own libraries, and the engine inside the AppImage is checked
+- refers-to: ../setup/build_linux_app (`appimage()`: the folders put on `LD_LIBRARY_PATH`, the two checks after the build)
+- kind: fix
+- logged: v1.32.3 · 2026-11-27
+
+**The cause, from the 1.32.2 build log.** `ERROR: Could not find dependency: liblcms2-ff8c4a65.so.2.0.10`, then `Failed to deploy dependencies for existing files`. The AppImage tool (linuxdeploy) asks `ldd` what every library under `usr/lib` needs and stops at the first one that is not found. The frozen engine holds two libraries that `ldd` cannot resolve where they lie: `_internal/libraw_r.so.25`, a second copy PyInstaller places beside the one in `rawpy/`, whose search path `$ORIGIN/../rawpy.libs` is only right from `rawpy/`; and `libheif`, which carries no search path at all and needs `libde265`. Neither matters when the engine runs: its start program puts `_internal` on the library path, and everything is found. It matters only to a tool that walks the files.
+
+**The fix.** Before the AppImage step the script asks `ldd` the same question over the engine, takes each library that is not found, finds the engine folder that holds it (a `*.libs` folder first), and puts those folders on `LD_LIBRARY_PATH` for that step only. Today that is `pi_heif.libs` and `rawpy.libs`; the list is worked out at build time, so a new wheel with the same habit needs no edit here. Those folders hold only hash-named libraries, so nothing else in the step picks up a different system library because of them.
+
+**The check after it.** The AppImage tool rewrites search paths in the libraries it walks, so a file that builds is not yet an engine that runs. After the build the script looks at the engine in the AppImage's own folder (`target/release/bundle/appimage/FormDAM.AppDir`): every library must find what it needs with only the engine's `_internal` on the path, as at run time, and the engine must pass `--selfcheck` from there. If either fails, the AppImage counts as not built and is removed, so an AppImage with a broken engine is never a release file.
+
+**Still `try`.** Shown here: with the engine from the published 1.32.1 deb, the 1.32.2 step fails on a stand-in for the tool with the build log's error (it names `libde265` first, the other of the two), the new step passes it with the two folders, the engine passes its self-check from the AppImage folder, and an engine with libraries taken out is caught and the file removed. Not shown: the real tool's run. That it reads `LD_LIBRARY_PATH` is its documented way to find libraries in unusual places and is not confirmed here, and it may stop later on something else. One more build decides whether the step becomes `required`.
+
+Also: the block of problem lines no longer lists the tool's "Could not find copyright files" warnings, which buried the error in the 1.32.2 log.
+
### ../setup/build_linux_app · when the AppImage is not built, the build log says why
- refers-to: ../setup/build_linux_app (the AppImage step: `--verbose`, `target/appimage-step.log`, the two printed blocks)
- kind: fix
From 7d3cf929cc1cf8a753e3285d43c48e52b5df89d3 Mon Sep 17 00:00:00 2001
From: nodemode-ai
Date: Fri, 27 Nov 2026 01:01:06 -0500
Subject: [PATCH 2/2] chore(release): v1.32.3
---
BUILD_NOTES.md | 4 ++++
README.md | 2 +-
frontend/package-lock.json | 4 ++--
frontend/package.json | 2 +-
src-tauri/Cargo.lock | 2 +-
src-tauri/Cargo.toml | 2 +-
6 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/BUILD_NOTES.md b/BUILD_NOTES.md
index 3297f9e..a618716 100644
--- a/BUILD_NOTES.md
+++ b/BUILD_NOTES.md
@@ -1,5 +1,9 @@
# formDAM build notes
+## v1.32.3 (2026-11-27) · the AppImage step's cause is fixed, and the engine inside an AppImage is checked before it ships
+
+The 1.32.2 build log gave the cause: the AppImage tool could not find `liblcms2-ff8c4a65.so.2.0.10`, a library the frozen engine keeps in its own `rawpy.libs` folder, and stopped. `setup/build_linux_app` now works out which engine folders hold such libraries and shows them to the tool for that step. After the build it checks the engine inside the AppImage's folder: every library must find what it needs as at run time, and the engine must pass its self-check there, or the AppImage counts as not built. The step is still `try` until one release build has made a working AppImage. Nothing in the app, the engine or the macOS and Windows builds changed from 1.32.0. Detail in `src-tauri/HASHOUT_LOG.md`.
+
## v1.32.2 (2026-11-27) · replaces 1.32.1; the build log now says why an AppImage was not built
1.32.1 was published with the deb and without the AppImage it was meant to add, and was then taken back. 1.32.2 replaces it. The AppImage step in `setup/build_linux_app` now runs verbosely and, when it fails, prints the lines that name the problem into the build log; in 1.32.1 the log could not say why. The step is still `try`, so the deb ships either way. Nothing in the app, the engine or the macOS and Windows builds changed from 1.32.0. Detail in `src-tauri/HASHOUT_LOG.md`.
diff --git a/README.md b/README.md
index 1655f18..5cb7724 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@
-
+
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index a613f68..49e4fbf 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "formdam-frontend",
- "version": "1.32.2",
+ "version": "1.32.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "formdam-frontend",
- "version": "1.32.2",
+ "version": "1.32.3",
"devDependencies": {
"jsdom": "^29.1.1",
"typescript": "^5.6.3",
diff --git a/frontend/package.json b/frontend/package.json
index 87d3598..3477f29 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -1,7 +1,7 @@
{
"name": "formdam-frontend",
"private": true,
- "version": "1.32.2",
+ "version": "1.32.3",
"type": "module",
"scripts": {
"dev": "vite",
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index 0d1dbf8..36961fe 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -1099,7 +1099,7 @@ dependencies = [
[[package]]
name = "formdam-desktop"
-version = "1.32.2"
+version = "1.32.3"
dependencies = [
"block2",
"keyring",
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index f34d541..4a6268e 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "formdam-desktop"
-version = "1.32.2"
+version = "1.32.3"
description = "formDAM: local-first digital asset manager for photos & video"
edition = "2021"