mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-09-30 04:03:44 +08:00
0b2c431d3a
version: sunnypilot v2026.003.000 (dev)
date: 2026-09-14T15:43:39
master commit: a5f44653d7
18 lines
781 B
Bash
Executable File
18 lines
781 B
Bash
Executable File
#!/bin/bash
|
|
INSTALL_PATH="${1:-/opt/homebrew/lib}"
|
|
if [ ! -d "$INSTALL_PATH" ]; then
|
|
USER=$(whoami)
|
|
echo "No path $INSTALL_PATH. Will create. Might need your password..."
|
|
echo "You can stop now and provide any location as an argument where you want to save the libs (note, that not default locations should be in LD_LIBRARY_PATH, so tinygrad can find the libs)."
|
|
echo "Press any key or symbol to continue..."
|
|
read -n 1 -s
|
|
|
|
sudo mkdir -p "$INSTALL_PATH"
|
|
sudo chown -R "$USER":staff "$INSTALL_PATH"
|
|
fi
|
|
|
|
# Download libamd_comgr.dylib
|
|
curl -s https://api.github.com/repos/tinygrad/amdcomgr_dylib/releases/latest | \
|
|
jq -r '.assets[] | select(.name == "libamd_comgr.dylib").browser_download_url' | \
|
|
xargs curl -L -o $INSTALL_PATH/libamd_comgr.dylib
|