diff --git a/scripts/build-naot.sh b/scripts/build-naot.sh index 209777dec..5a89b06fd 100644 --- a/scripts/build-naot.sh +++ b/scripts/build-naot.sh @@ -33,4 +33,13 @@ esac dotnet publish "$bootstrap_project" -c Release -o "$output_directory" -dotnet publish "$client_project" -c Release -f net8.0 -p:TargetFrameworks=net8.0 -p:NativeLib=Shared -p:OutputType=Library -r $target -o "$output_directory" \ No newline at end of file +dotnet publish "$client_project" -c Release -f net8.0 -p:TargetFrameworks=net8.0 -p:NativeLib=Shared -p:OutputType=Library -r $target -o "$output_directory" + +# Post processing for the ClassicUO executable +case $platform in + Darwin) + # Convert ClassicUO executable and set permissions + cd "$output_directory" + tr -d '\r' < ClassicUO > ClassicUO_fixed && mv ClassicUO_fixed ClassicUO + chmod +x ClassicUO +esac \ No newline at end of file