The mac version of vesc program
brew install qt@5
git clone git@github.com:vedderb/vesc_tool.git vesc_tool
cd vesc_tool rm -rf build/macOS/*
export PATH="/usr/local/opt/qt@5/bin:$PATH" export LDFLAGS="-L/usr/local/opt/qt@5/lib" export CPPFLAGS="-I/usr/local/opt/qt@5/include"
qmake -config release "LIBS+= -dead_strip" "CONFIG += release_macos build_original"
make clean
_CPUs=$((
APP_VERSION=$(grep ^VT_VERSION vesc_tool.pro | tr -d "VT_VERSION = ") APP_NAME="vesc_tool_${APP_VERSION}.app"
macdeployqt build/macos/$APP_NAME -codesign=""
macdeployqt build/macos/$APP_NAME
rm -rf build/macos/obj