Files
openclaw/scripts/mantis/build-telegram-desktop-image.sh
Ayaan Zaidi 97e3136b9e feat(qa): add a standalone Telegram Desktop recorder with a prebaked desktop image (#125186)
Records native Telegram Desktop from a digest-pinned prebaked image: a ready desktop in ~12s with no per-lease apt installs or downloads, which also removes the dpkg-lock failures that killed recent runs.

The recorder only records; callers drive the turn and supply the TDLib driver used for QR authorization. Nothing in this repository invokes it yet - routing the Mantis Telegram Desktop Proof workflow through it is a follow-up.
2026-08-19 11:23:48 +05:30

29 lines
638 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
image_tag="openclaw-telegram-desktop:7.0.9"
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
image_dir="$script_dir/telegram-desktop-image"
build_args=()
case "${1:-}" in
"") ;;
--no-cache) build_args+=(--no-cache) ;;
-h | --help)
printf 'Usage: scripts/mantis/build-telegram-desktop-image.sh [--no-cache]\n'
exit 0
;;
*)
printf 'unknown argument: %s\n' "$1" >&2
exit 2
;;
esac
if [[ "$#" -gt 1 ]]; then
printf 'expected at most one argument\n' >&2
exit 2
fi
docker build "${build_args[@]}" --tag "$image_tag" "$image_dir"
printf '%s\n' "$image_tag"