Files
simplex-chat/scripts/ci/desktop-linux/install-core.sh
T
spacedandy-agents-simplex 86358ba5bc ci: build the desktop app for Linux, run a UI smoke test under Xvfb and the desktop tests
First iteration on f/ci-desktop: the core job builds libsimplex.so with scripts/desktop/build-lib-linux.sh on ubuntu-24.04 (GHC 9.6.3, direct-sqlcipher +openssl, no VLC) and caches it by source hash, with the cabal store cached separately. The app job builds :desktop:createDistributable with Corretto 17 and the repo's assets, runs :common:desktopTest, then starts the app under Xvfb and openbox with software rendering and drives onboarding to the chat list and typing in the search field with the ui helper (xdotool input, tesseract OCR to find text), saving numbered screenshots, the text read from them and a step log as artifacts.
2026-10-14 17:33:34 +00:00

23 lines
722 B
Bash
Executable File

#!/bin/bash
# Unpacks the core package from build-core.sh where scripts/desktop/build-lib-linux.sh leaves the libraries,
# and links them as the desktop app's resources, as that script does.
# Usage: scripts/ci/desktop-linux/install-core.sh <core .tar.gz>
set -euo pipefail
arch=$(uname -m)
case "$arch" in
aarch64) compose_arch=arm64 ;;
*) compose_arch=x64 ;;
esac
libs_dir=apps/multiplatform/common/src/commonMain/cpp/desktop/libs/linux-$arch
mkdir -p "$libs_dir"
tar -C "$libs_dir" -xzf "$1"
ls -la "$libs_dir"
mkdir -p apps/multiplatform/build/links
ln -sfT "../../common/src/commonMain/cpp/desktop/libs/linux-$arch/" "apps/multiplatform/build/links/linux-$compose_arch"
ls -la apps/multiplatform/build/links