build: add Ubuntu 22.04 portable binary pipeline

This commit is contained in:
2026-03-08 16:10:09 +01:00
parent f8ea2fc514
commit f9e136ad87
2 changed files with 76 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
#!/usr/bin/env bash
set -euo pipefail
export HOME="${HOME:-/tmp}"
export PYINSTALLER_CONFIG_DIR="${PYINSTALLER_CONFIG_DIR:-/tmp/pyinstaller-cache}"
cd /src
echo "==> Python"
python --version
echo
echo "==> Cleaning previous artifacts"
rm -rf build dist
mkdir -p dist
echo
echo "==> Building cellar-cli"
python -m PyInstaller cellar-cli.spec --clean --noconfirm
echo
echo "==> Building cellar GTK"
python -m PyInstaller cellar.spec --clean --noconfirm
echo
echo "==> Built files"
ls -lh dist
echo
show_glibc_requirement() {
local binary="$1"
echo "-- $(basename "$binary")"
objdump -p "$binary" 2>/dev/null \
| grep -oE 'GLIBC_[0-9]+\.[0-9]+' \
| sort -Vu \
| tail -1
}
echo "==> GLIBC requirements"
show_glibc_requirement dist/cellar-cli
show_glibc_requirement dist/cellar
echo
echo "==> Done"