Files
sunnypilot-byd/tinygrad_repo/extra/usbgpu/tbgpu/install_tinygpu.sh
T
github-actions[bot] de77c89cf6 sunnypilot v2026.002.000
version: sunnypilot v2026.002.000 (staging)
date: 2026-07-21T07:44:02
master commit: 2c334ede443d7391d27575af8c854a095ba702a8
2026-07-21 07:44:02 +00:00

23 lines
439 B
Bash
Executable File

#!/bin/bash
set -e
APP_PATH="/Applications/TinyGPU.app"
DEXT_ID="org.tinygrad.tinygpu.driver2"
# Install app if not present. TODO: url
if [[ ! -d "$APP_PATH" ]]; then
echo "TinyGPU.app not found in /Applications"
exit 1
fi
# Ask user to install
read -n1 -p "Install TinyGPU driver extension now? [y/N] " answer
echo
if [[ "$answer" =~ ^[Yy]$ ]]; then
"$APP_PATH/Contents/MacOS/TinyGPU" install
else
echo "Skipped."
exit 0
fi