diff --git a/scripts/build b/scripts/build index d145a354..a5e3f48f 100755 --- a/scripts/build +++ b/scripts/build @@ -1,14 +1,20 @@ #!/usr/bin/env bash set -e +# Ensure required dependencies are installed +sudo apt-get update +sudo apt-get install -y libssl-dev libicu-dev + +# Set the environment variable for globalization invariant mode +export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 + # Restore NuGet packages dotnet restore -if ! command -v dotnet-format; then +if ! command -v dotnet-format &> /dev/null; then echo "Installing dotnet formatter..." - export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 dotnet tool install -g dotnet-format --version 4.0.0 fi - -dotnet build +# Build the project +dotnet build \ No newline at end of file