Files
simplex-chat/scripts/ci/desktop-linux/release-app.sh
T
spacedandy-agents-simplex 497c451e59 ci: run the desktop smoke test on the released app as well
The branch's Kotlin does not compile yet (DirectorySearch.kt and DirectorySearchView.kt import chat.simplex.res.MR instead of chat.simplex.res.*), so the app job stops before the UI steps. A new release job downloads the desktop .deb of the branch's latest release tag for the runner's Ubuntu and runs the same smoke test on it, which exercises Xvfb, openbox, xdotool and the OCR helper independently of the branch build. The smoke test now checks that the typed text appears in the search field and reports whether the Search in Directory row is shown, since releases before directory search don't have it. This run also checks that the core library cache is hit.
2026-10-14 19:45:10 +00:00

21 lines
757 B
Bash
Executable File

#!/bin/bash
# Downloads the released desktop app for this runner's Ubuntu at the branch's latest release tag, and unpacks it.
# Usage: scripts/ci/desktop-linux/release-app.sh <dir>
# The app is then in <dir>/app/opt/simplex, laid out as release/main/app/simplex of a branch build.
set -euo pipefail
dir=$1
tag=$(git describe --tags --abbrev=0 --match 'v*' --exclude '*-armv7a' --exclude '*-fdroid')
. /etc/os-release
asset=simplex-desktop-ubuntu-${VERSION_ID/./_}-$(uname -m).deb
echo "release $tag, asset $asset"
mkdir -p "$dir"
curl -fsSL -o "$dir/$asset" "https://github.com/simplex-chat/simplex-chat/releases/download/$tag/$asset"
dpkg-deb -x "$dir/$asset" "$dir/app"
rm "$dir/$asset"
ls -la "$dir/app/opt/simplex/bin"
du -sh "$dir/app/opt/simplex"