-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathHi3Helper.Sophon.Universal.csproj
80 lines (73 loc) · 4.81 KB
/
Hi3Helper.Sophon.Universal.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net6.0;net8.0;net9.0</TargetFrameworks>
<ImplicitUsings>disable</ImplicitUsings>
<Platforms>x64</Platforms>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DefineConstants>NOSTREAMLOCK</DefineConstants>
<IsAotCompatible>true</IsAotCompatible>
<IsTrimmable>true</IsTrimmable>
<Version>1.6.0</Version>
<AssemblyVersion>1.6.0</AssemblyVersion>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<AssemblyName>Hi3Helper.Sophon.Universal</AssemblyName>
<AssemblyTitle>Hi3Helper.Sophon - A deserializer and downloader for the new HoYoverse/miHoYo Launcher's Sophon chunk-based download method.</AssemblyTitle>
<Description>Hi3Helper.Sophon is a tool used by Collapse Launcher project to deserialize and download files using a new HoYoverse/miHoYo Launcher's Sophon chunk-based download method.</Description>
<PackageProjectUrl>https://github.com/CollapseLauncher/Hi3Helper.Sophon</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Copyright>Copyright (c) 2025 Collapse Project Team, Kemal Setya Adhi (neon-nyan)</Copyright>
<Authors>neon-nyan</Authors>
<PackageId>Hi3Helper.Sophon</PackageId>
<PackageIcon>icon.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageTags>sophon</PackageTags>
<IsAotCompatible>true</IsAotCompatible>
<LangVersion>13</LangVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DebugType>portable</DebugType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<Optimize>True</Optimize>
<DebugType>portable</DebugType>
</PropertyGroup>
<ItemGroup>
<Compile Remove="Test\**" />
<EmbeddedResource Remove="Test\**" />
<None Remove="Test\**" />
</ItemGroup>
<ItemGroup>
<None Include="icon.png" Pack="true" PackagePath="\" />
<None Include="README.md" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.30.0" />
<PackageReference Include="Google.Protobuf.Tools" Version="3.30.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Hi3Helper.ZstdNet" Version="*" />
<PackageReference Include="SharpHDiffPatch.Core" Version="*" />
<PackageReference Include="System.Buffers" Version="*" Condition="$(DefineConstants.Contains('NETSTANDARD2_0'))" />
<PackageReference Include="System.IO.Hashing" Version="*" />
<PackageReference Include="System.Net.Http" Version="*" Condition="$(DefineConstants.Contains('NET462'))" />
<PackageReference Include="System.Net.Http.Json" Version="*" Condition="$(DefineConstants.Contains('NETSTANDARD2_0'))" />
<PackageReference Include="System.Text.Json" Version="*" Condition="$(DefineConstants.Contains('NETSTANDARD2_0'))" />
<PackageReference Include="System.Threading.Tasks" Version="*" Condition="$(DefineConstants.Contains('NETSTANDARD2_0'))" />
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="*" Condition="$(DefineConstants.Contains('NETSTANDARD2_0'))" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="*" Condition="$(DefineConstants.Contains('NETSTANDARD2_0'))" />
</ItemGroup>
<Target Name="GenerateProto-SophonManifestProto" Inputs="$(ProjectDir)Protos\SophonManifestProto.proto" Outputs="$(ProjectDir)Protos\SophonManifestProto.cs" BeforeTargets="BeforeBuild">
<Message Text="Generating Genshin gateway proto code..." Importance="high" />
<Exec Command=""$(NugetPackageRoot)\google.protobuf.tools\3.30.0\tools\windows_x64\protoc.exe" --proto_path="$(ProjectDir)Protos" --csharp_out="$(ProjectDir)Protos" "$(ProjectDir)Protos\SophonManifestProto.proto"" />
</Target>
<Target Name="GenerateProto-SophonPatchProto" Inputs="$(ProjectDir)Protos\SophonPatchProto.proto" Outputs="$(ProjectDir)Protos\SophonPatchProto.cs" BeforeTargets="BeforeBuild">
<Message Text="Generating Genshin gateway proto code..." Importance="high" />
<Exec Command=""$(NugetPackageRoot)\google.protobuf.tools\3.30.0\tools\windows_x64\protoc.exe" --proto_path="$(ProjectDir)Protos" --csharp_out="$(ProjectDir)Protos" "$(ProjectDir)Protos\SophonPatchProto.proto"" />
</Target>
<Target Name="PreCompile" BeforeTargets="Compile">
<CallTarget Targets="GenerateProto-SophonManifestProto" />
<CallTarget Targets="GenerateProto-SophonPatchProto" />
<Message Text="PreCompile target has finished running." Importance="high" />
</Target>
</Project>