comparison dictation/launcher.sh @ 282:6bd4a3990696 default tip

Add cross-platform canvas orchestration and typed composer Enable native ARM dependencies, macOS Copilot orchestration, portable service supervision, CPU dictation, and a shared N-key speak-or-type composer. Co-authored-by: Copilot <[email protected]> Copilot-Session: f68442b1-fa8f-46a0-9689-81710613bbd4
author MrJuneJune <me@mrjunejune.com>
date Thu, 20 Aug 2026 20:45:25 -0700
parents 78699f810817
children
comparison
equal deleted inserted replaced
281:c57149ad216e 282:6bd4a3990696
11 if [[ -z "${RUNFILES_DIR:-}" ]]; then 11 if [[ -z "${RUNFILES_DIR:-}" ]]; then
12 echo "Bazel runfiles are unavailable." >&2 12 echo "Bazel runfiles are unavailable." >&2
13 exit 1 13 exit 1
14 fi 14 fi
15 15
16 find_library_dir() { 16 if [[ "$(uname -s)" == "Linux" ]]; then
17 local name="$1" 17 find_library_dir() {
18 local path 18 local name="$1"
19 path="$(find -L "$RUNFILES_DIR" -name "$name" -print -quit)" 19 local path
20 if [[ -z "$path" ]]; then 20 path="$(find -L "$RUNFILES_DIR" -name "$name" -print -quit)"
21 echo "Unable to find $name in Bazel runfiles." >&2 21 if [[ -z "$path" ]]; then
22 exit 1 22 echo "Unable to find $name in Bazel runfiles." >&2
23 fi 23 exit 1
24 dirname "$path" 24 fi
25 } 25 dirname "$path"
26 }
26 27
27 cublas_dir="$(find_library_dir libcublas.so.12)" 28 cublas_dir="$(find_library_dir libcublas.so.12)"
28 cudnn_dir="$(find_library_dir libcudnn.so.9)" 29 cudnn_dir="$(find_library_dir libcudnn.so.9)"
29 export LD_LIBRARY_PATH="$cublas_dir:$cudnn_dir${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" 30 export LD_LIBRARY_PATH="$cublas_dir:$cudnn_dir${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
31 fi
30 32
31 if [[ "$binary" != /* ]]; then 33 if [[ "$binary" != /* ]]; then
32 binary="$RUNFILES_DIR/_main/$binary" 34 binary="$RUNFILES_DIR/_main/$binary"
33 fi 35 fi
34 36