Release: fix portable runtime and updater
Container CI / release-build (push) Successful in 34m0s
Signed release / publish (push) Successful in 34m10s

This commit is contained in:
faumaray committed 2026-07-26 16:48:53 +03:00
1 parent 1ff935b727
commit fb8fb69532
21 files changed
+252 -29

No files matched your search

+16 -3
View File
@@ -382,6 +382,12 @@ cmake --install "$build_dir" \
--component Runtime \
--prefix "$stage"
certificate_bundle=${ECHOION_CA_BUNDLE:-/etc/ssl/certs/ca-certificates.crt}
[[ -s $certificate_bundle ]] ||
die "TLS certificate bundle is missing or empty: $certificate_bundle"
install -D -m 0644 -- "$certificate_bundle" \
"$stage/share/echoion/certs/ca-certificates.crt"
mapfile -t library_directories < <(
find "$build_dir" -type f \( -name '*.so' -o -name '*.so.*' -o -name '*.ts' \) \
-printf '%h\n' | LC_ALL=C sort -u
@@ -420,11 +426,12 @@ cmake \
-P "$source_dir/cmake/BundleRuntimeDependencies.cmake"
# Bootstrap plugins are copied into writable managed-plugin state by the
# installer. Services and the portable launcher point the loader at current/lib;
# this relative path also keeps the immutable source artifact directly usable.
# installer. Search the active release closure from managed, portable/manual,
# and immutable bootstrap locations, then allow plugin-private dependencies.
plugin_runpath='$ORIGIN/../../../../../../current/lib:$ORIGIN/../../current/lib:$ORIGIN/lib'
for plugin_library in "${resolver_libraries[@]:1}"; do
# shellcheck disable=SC2016 # Dynamic linker token, not a shell variable.
patchelf --set-rpath '$ORIGIN/../../../../../lib' "$plugin_library"
patchelf --set-rpath "$plugin_runpath" "$plugin_library"
done
dependency_report="$build_dir/dependency-report.txt"
@@ -513,6 +520,12 @@ collect_licenses() {
-printf '%f\n' | LC_ALL=C sort -u
)
fi
candidate=/usr/share/doc/ca-certificates/copyright
if [[ -f $candidate ]]; then
install -m 0644 -- "$candidate" \
"$destination/ca-certificates--copyright"
fi
}
collect_licenses "$stage/share/echoion/licenses"