diff --git a/BUILD_NOTES.md b/BUILD_NOTES.md index a618716..8aad9dd 100644 --- a/BUILD_NOTES.md +++ b/BUILD_NOTES.md @@ -1,5 +1,9 @@ # formDAM build notes +## v1.32.4 (2026-11-27) · the Linux AppImage is built + +1.32.3 still shipped the deb alone. Its AppImage step looked for the engine's missing libraries before the step ran, found none, and so changed nothing; the library only goes missing once the AppImage tool has moved a file that needs it. `setup/build_linux_app` now shows the tool every library folder of the engine. A full Linux build of this script made the AppImage, and the engine inside it passes its self-check. 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.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`. diff --git a/README.md b/README.md index 5cb7724..c18477b 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@
-
+
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 49e4fbf..ddbe459 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "formdam-frontend",
- "version": "1.32.3",
+ "version": "1.32.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "formdam-frontend",
- "version": "1.32.3",
+ "version": "1.32.4",
"devDependencies": {
"jsdom": "^29.1.1",
"typescript": "^5.6.3",
diff --git a/frontend/package.json b/frontend/package.json
index 3477f29..7e43601 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -1,7 +1,7 @@
{
"name": "formdam-frontend",
"private": true,
- "version": "1.32.3",
+ "version": "1.32.4",
"type": "module",
"scripts": {
"dev": "vite",
diff --git a/setup/build_linux_app b/setup/build_linux_app
index 54bdb2a..09b898f 100755
--- a/setup/build_linux_app
+++ b/setup/build_linux_app
@@ -120,13 +120,8 @@ 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
+ folders=$(find "$PWD/$engine" -type d -name '*.libs' | sort | tr '\n' ':')
+ folders=${folders%:}
[ -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
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index 36961fe..fb1cbc6 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -1099,7 +1099,7 @@ dependencies = [
[[package]]
name = "formdam-desktop"
-version = "1.32.3"
+version = "1.32.4"
dependencies = [
"block2",
"keyring",
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index 4a6268e..b32fbfc 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "formdam-desktop"
-version = "1.32.3"
+version = "1.32.4"
description = "formDAM: local-first digital asset manager for photos & video"
edition = "2021"
diff --git a/src-tauri/HASHOUT_LOG.md b/src-tauri/HASHOUT_LOG.md
index f423739..ec4a4d7 100644
--- a/src-tauri/HASHOUT_LOG.md
+++ b/src-tauri/HASHOUT_LOG.md
@@ -1,6 +1,17 @@
# src-tauri HASHOUT_LOG · formDAM
current: v1.27.2 · 2026-10-22
+### ../setup/build_linux_app · the AppImage tool is shown every library folder of the engine
+- refers-to: ../setup/build_linux_app (`appimage()`: the folders put on `LD_LIBRARY_PATH`)
+- kind: fix
+- logged: v1.32.4 · 2026-11-27
+
+**Why 1.32.3 still made no AppImage.** Its step asked `ldd` which of the engine's libraries find nothing, and put only the folders of those on the library path. On the release runner that list is empty: where the engine lies before the step, every library finds what it needs, so no folder was added and the tool stopped on `liblcms2-ff8c4a65.so.2.0.10` exactly as in 1.32.2. The library goes missing only inside the step, once the tool has copied a library that needs it (from `rawpy.libs`) to `usr/lib`, away from its neighbours.
+
+**The fix.** The step no longer asks what is missing beforehand. It puts every `*.libs` folder of the engine on `LD_LIBRARY_PATH` for that step only: today `numpy.libs`, `opencv_python_headless.libs`, `pi_heif.libs`, `pillow.libs` and `rawpy.libs`. They hold only hash-named libraries, so nothing else in the step picks up a different system library because of them. The two checks after the build are unchanged.
+
+**Shown.** A build of this script on `ubuntu-22.04` with the release recipe's packages and `APPIMAGE=required` (formDAM Actions run 46003254877, branch `diag/appimage-linux-build`): the real tool finished, `FormDAM_1.32.3_amd64.AppImage` (758 MB) lies beside the deb, every library of the engine inside the AppImage's folder finds what it needs, and the engine passes `--selfcheck` from there. Not shown: the AppImage started on a desktop. The step stays `try` for this release, so the deb ships either way.
+
### ../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