Skip to content

Commit

Permalink
Convert build script for osx, conver ClassicUO and set permission aft…
Browse files Browse the repository at this point in the history
…er build on osx.
  • Loading branch information
birdinforest committed Aug 26, 2024
1 parent 43a4ac6 commit 0ee38b4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/build-naot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
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

0 comments on commit 0ee38b4

Please sign in to comment.