Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions BUILD_NOTES.md
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</p>

<p align="center">
<img alt="version 1.32.3" src="https://img.shields.io/badge/version-1.32.3-eef0f4?style=flat-square">
<img alt="version 1.32.4" src="https://img.shields.io/badge/version-1.32.4-eef0f4?style=flat-square">
<img alt="Python FastAPI" src="https://img.shields.io/badge/python%20%C2%B7%20fastapi-engine-3776ab?style=flat-square&logo=python&logoColor=white">
<img alt="macOS, Windows, Linux" src="https://img.shields.io/badge/macOS%20%C2%B7%20Windows%20%C2%B7%20Linux-native-2f7bf5?style=flat-square">
<img alt="License: Apache-2.0" src="https://img.shields.io/badge/license-Apache--2.0-3a3a3a?style=flat-square">
Expand Down
4 changes: 2 additions & 2 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "formdam-frontend",
"private": true,
"version": "1.32.3",
"version": "1.32.4",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
9 changes: 2 additions & 7 deletions setup/build_linux_app
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
11 changes: 11 additions & 0 deletions src-tauri/HASHOUT_LOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading