maui/dotnet-local.sh

13 строки
355 B
Bash
Executable File

#!/bin/bash
ROOT="$(dirname "${BASH_SOURCE}")"
FULLROOT="$(cd "${ROOT}"; pwd)"
if [[ ! -x "${ROOT}/bin/dotnet/dotnet" ]] ; then
echo 'You must build MAUI first. Please see `.github/DEVELOPMENT.md` for details.' 1>&2
exit 1
fi
export DOTNET_ROOT="${FULLROOT}/bin/dotnet"
export PATH="${DOTNET_ROOT}:${PATH}"
exec "${ROOT}/bin/dotnet/dotnet" "$@"