Files
sunnypilot/tools/nui/nui
George Hotz 344a9a3699 Fixups for Mac, and a bunch for PC (#1654)
* fix mac nui

* fix cereal

* builds on mac without warnings

* ui swap shouldn't be instant on pc

* camerad builds on mac

* modeld, and now everything, builds on mac

* ui draws pictures on mac now

* fix camerad shutdown

* support ui looping on pc

* python3 on that

* SCNu64 should be cross platform

* bump cereal and new apk

* clean up

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-06-11 18:21:59 -07:00

19 lines
372 B
Bash
Executable File

#!/bin/bash -e
if [ $# -gt 0 ]; then
if [ "$INTERNAL" = 1 ]; then
./_nui "$1"
else
./get_files_comma_api.py $1
if [ -f ./_nui ]; then
./_nui use_api
elif [ -f _nui.app/Contents/MacOS/_nui ]; then
./_nui.app/Contents/MacOS/_nui use_api
else
echo "nui not found, please build it"
fi
fi
else
echo "Please Enter a Route"
fi