mirror of https://github.com/ppy/SDL3-CS.git
Fix Dockerfile not working with multi-targeted project
This commit is contained in:
parent
09cd92181a
commit
3d92f36990
|
|
@ -6,6 +6,12 @@ RUN apt-get update && \
|
|||
WORKDIR /tmp
|
||||
COPY .config/dotnet-tools.json .config/dotnet-tools.json
|
||||
COPY SDL3-CS/SDL3-CS.csproj SDL3-CS/SDL3-CS.csproj
|
||||
|
||||
# .NET 8 installed using the distro package does not support the android workload.
|
||||
# Since the project is only used for reference purposes, we'll retarget it to a single framework.
|
||||
# See: https://github.com/dotnet/core/discussions/9258#discussioncomment-9548857
|
||||
RUN sed -i 's/<TargetFrameworks.*$/<TargetFramework>net8.0<\/TargetFramework>/' SDL3-CS/SDL3-CS.csproj
|
||||
|
||||
RUN dotnet tool restore && \
|
||||
dotnet restore --ucr SDL3-CS/SDL3-CS.csproj
|
||||
|
||||
|
|
@ -16,4 +22,4 @@ RUN echo '#!/bin/bash' >> entrypoint.sh && \
|
|||
echo 'python3 SDL3-CS/generate_bindings.py "$@"' >> entrypoint.sh && \
|
||||
chmod +x entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue