mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-14 00:45:16 +08:00
23 lines
439 B
Bash
Executable File
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
|