1 From aecfb0a69f9e418158d4a09ec955e0c3f4d8f062 Mon Sep 17 00:00:00 2001
2 From: Lyze <11274700+lyze237@users.noreply.github.com>
3 Date: Fri, 20 Sep 2024 19:48:58 +0200
4 Subject: [PATCH] Fix nixos crashing
7 .../LogicReinc.BlendFarm.Client.csproj | 2 +-
8 LogicReinc.BlendFarm.Client/RenderTask.cs | 1 +
9 LogicReinc.BlendFarm.Client/Tasks/ChunkedTask.cs | 1 +
10 LogicReinc.BlendFarm.Client/Tasks/SplitChunkedTask.cs | 1 +
11 LogicReinc.BlendFarm.Client/Tasks/SplittedTask.cs | 1 +
12 .../runtimeconfig.template.json | 10 ++++++++++
13 LogicReinc.BlendFarm/LogicReinc.BlendFarm.csproj | 2 --
14 LogicReinc.BlendFarm/nuget.config | 11 -----------
15 LogicReinc.BlendFarm/runtimeconfig.template.json | 10 ++++++++++
16 9 files changed, 25 insertions(+), 14 deletions(-)
17 create mode 100644 LogicReinc.BlendFarm.Client/runtimeconfig.template.json
18 delete mode 100644 LogicReinc.BlendFarm/nuget.config
19 create mode 100644 LogicReinc.BlendFarm/runtimeconfig.template.json
21 diff --git a/LogicReinc.BlendFarm.Client/LogicReinc.BlendFarm.Client.csproj b/LogicReinc.BlendFarm.Client/LogicReinc.BlendFarm.Client.csproj
22 index d534ea7..698e8d6 100644
23 --- a/LogicReinc.BlendFarm.Client/LogicReinc.BlendFarm.Client.csproj
24 +++ b/LogicReinc.BlendFarm.Client/LogicReinc.BlendFarm.Client.csproj
29 - <PackageReference Include="System.Drawing.Common" Version="5.0.0" />
30 + <PackageReference Include="System.Drawing.Common" Version="6.0.0" />
31 <PackageReference Include="System.Text.Json" Version="5.0.0" />
34 diff --git a/LogicReinc.BlendFarm.Client/RenderTask.cs b/LogicReinc.BlendFarm.Client/RenderTask.cs
35 index 9cc67dd..5ba3086 100644
36 --- a/LogicReinc.BlendFarm.Client/RenderTask.cs
37 +++ b/LogicReinc.BlendFarm.Client/RenderTask.cs
40 using System.Threading;
41 using System.Threading.Tasks;
42 +using ImageConverter = LogicReinc.BlendFarm.Client.ImageTypes.ImageConverter;
44 namespace LogicReinc.BlendFarm.Shared
46 diff --git a/LogicReinc.BlendFarm.Client/Tasks/ChunkedTask.cs b/LogicReinc.BlendFarm.Client/Tasks/ChunkedTask.cs
47 index 310fa20..d84dbea 100644
48 --- a/LogicReinc.BlendFarm.Client/Tasks/ChunkedTask.cs
49 +++ b/LogicReinc.BlendFarm.Client/Tasks/ChunkedTask.cs
54 +using ImageConverter = LogicReinc.BlendFarm.Client.ImageTypes.ImageConverter;
56 namespace LogicReinc.BlendFarm.Client.Tasks
58 diff --git a/LogicReinc.BlendFarm.Client/Tasks/SplitChunkedTask.cs b/LogicReinc.BlendFarm.Client/Tasks/SplitChunkedTask.cs
59 index 6ed55dd..bf1eb14 100644
60 --- a/LogicReinc.BlendFarm.Client/Tasks/SplitChunkedTask.cs
61 +++ b/LogicReinc.BlendFarm.Client/Tasks/SplitChunkedTask.cs
65 using System.Threading.Tasks;
66 +using ImageConverter = LogicReinc.BlendFarm.Client.ImageTypes.ImageConverter;
68 namespace LogicReinc.BlendFarm.Client.Tasks
70 diff --git a/LogicReinc.BlendFarm.Client/Tasks/SplittedTask.cs b/LogicReinc.BlendFarm.Client/Tasks/SplittedTask.cs
71 index 7edcb92..5483d8f 100644
72 --- a/LogicReinc.BlendFarm.Client/Tasks/SplittedTask.cs
73 +++ b/LogicReinc.BlendFarm.Client/Tasks/SplittedTask.cs
76 using System.Threading;
77 using System.Threading.Tasks;
78 +using ImageConverter = LogicReinc.BlendFarm.Client.ImageTypes.ImageConverter;
80 namespace LogicReinc.BlendFarm.Client.Tasks
82 diff --git a/LogicReinc.BlendFarm.Client/runtimeconfig.template.json b/LogicReinc.BlendFarm.Client/runtimeconfig.template.json
84 index 0000000..738771b
86 +++ b/LogicReinc.BlendFarm.Client/runtimeconfig.template.json
91 + "System.Drawing.EnableUnixSupport": true
94 + "configProperties": {
95 + "System.Drawing.EnableUnixSupport": true
98 diff --git a/LogicReinc.BlendFarm/LogicReinc.BlendFarm.csproj b/LogicReinc.BlendFarm/LogicReinc.BlendFarm.csproj
99 index 97aa471..7e7096c 100644
100 --- a/LogicReinc.BlendFarm/LogicReinc.BlendFarm.csproj
101 +++ b/LogicReinc.BlendFarm/LogicReinc.BlendFarm.csproj
104 <PackageReference Include="Avalonia" Version="0.10.15" />
105 <PackageReference Include="Avalonia.Desktop" Version="0.10.15" />
106 - <PackageReference Include="runtime.linux-x64.CoreCompat.System.Drawing" Version="1.0.0-beta009" />
107 - <PackageReference Include="runtime.osx.10.10-x64.CoreCompat.System.Drawing" Version="5.8.64" />
108 <PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.88.0" />
111 diff --git a/LogicReinc.BlendFarm/nuget.config b/LogicReinc.BlendFarm/nuget.config
112 deleted file mode 100644
113 index 6c273ab..0000000
114 --- a/LogicReinc.BlendFarm/nuget.config
117 -<?xml version="1.0" encoding="utf-8"?>
120 - To use the Avalonia CI feed to get unstable packages, move this file to the root of your solution.
125 - <add key="AvaloniaCI" value="https://www.myget.org/F/avalonia-ci/api/v2" />
128 diff --git a/LogicReinc.BlendFarm/runtimeconfig.template.json b/LogicReinc.BlendFarm/runtimeconfig.template.json
130 index 0000000..738771b
132 +++ b/LogicReinc.BlendFarm/runtimeconfig.template.json
136 + "runtimeOptions": {
137 + "System.Drawing.EnableUnixSupport": true
140 + "configProperties": {
141 + "System.Drawing.EnableUnixSupport": true