mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 11:55:47 -06:00
97e3136b9e
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.
29 lines
638 B
Bash
Executable File
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"
|