WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )} XBMC_PLATFORM_DIR=osx-arm64 . $WORKSPACE/tools/buildsteps/defaultenv cd $WORKSPACE/build;make -j$BUILDTHREADS dmg cd $WORKSPACE/build/tools/darwin/packaging/osx/ #rename for upload #e.x. kodi-20130314-8c2fb31-Frodo-x86_64.dmg UPLOAD_FILENAME="kodi-$(getBuildRevDateStr)-arm64.dmg" mv *.dmg $WORKSPACE/tools/darwin/packaging/osx/$UPLOAD_FILENAME