forked from tinygrad/tinygrad
* shim binary + remote pci dev * v2 * rip out apl * cmds * rename * clean * remove * rm gitignore * ui * install * linter * um * cleaner * assets * normal install in ui * cleaner app * install script * support fd mmap * cleaner * kill server when disconn * rename + pcidevs * sign * install and reinstall * no sip install * will trigger update * nv * ugh * this * fix * nv * use nosip sign * auto install * remove * mypy * upd * ditto * print * simpler * ditto * um * simpler * upd * upd * cleaner * autogen * cleaner * move * annotations * server cleaner
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.edriver"
|
|
|
|
# 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
|