Skip to content

Commit 5caea0d

Browse files
committed
通过 git 信息生成版本信息
1 parent 8e790c8 commit 5caea0d

File tree

4 files changed

+16
-53
lines changed

4 files changed

+16
-53
lines changed

mod/Core.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
using MelonLoader;
22
using Tomlet;
33

4-
[assembly: MelonInfo(typeof(WorldLink.Core), "WorldLink", "1.0.0", "Azalea")]
5-
[assembly: MelonGame("sega-interactive", "Sinmai")]
6-
74
namespace WorldLink;
85

96
public class Config
@@ -19,17 +16,6 @@ public class Core : MelonMod
1916

2017
public override void OnInitializeMelon()
2118
{
22-
LoggerInstance.Msg("""
23-
/=============================\
24-
| . . . .. . |
25-
| | | _ ._.| _|| *._ ;_/ |
26-
| |/\|(_)[ |(_]|___|[ )| \ |
27-
\=============================/
28-
| Version 1.0.0 |
29-
| Made with <3 by Aza |
30-
\=========================/
31-
""");
32-
3319
// Load config
3420
LoggerInstance.Msg("Loading config...");
3521
Config = TomletMain.To<Config>(File.ReadAllText("WorldLink.toml"));

mod/Properties/AssemblyInfo.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System.Reflection;
2+
using MelonLoader;
3+
4+
[assembly: AssemblyTitle(WorldLink.BuildInfo.Name)]
5+
[assembly: AssemblyProduct(WorldLink.BuildInfo.Name)]
6+
[assembly: AssemblyCopyright(WorldLink.BuildInfo.Author)]
7+
[assembly: AssemblyVersion(WorldLink.BuildInfo.Version)]
8+
[assembly: AssemblyFileVersion(WorldLink.BuildInfo.GitVersion)]
9+
[assembly: MelonInfo(typeof(WorldLink.Core), WorldLink.BuildInfo.Name, WorldLink.BuildInfo.GitVersion, WorldLink.BuildInfo.Author)]
10+
[assembly: MelonColor(0, 172, 181, 250)]
11+
[assembly: HarmonyDontPatchAll]
12+
[assembly: MelonGame("sega-interactive", "Sinmai")]

mod/WorldLink.csproj

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
<RootNamespace>WorldLink</RootNamespace>
77
<LangVersion>default</LangVersion>
88
<IsPackable>false</IsPackable>
9-
<AssemblyVersion>1.0.0.0</AssemblyVersion>
10-
<FileVersion>1.0.0.0</FileVersion>
119
<NeutralLanguage>en-US</NeutralLanguage>
1210
<AssemblyName>WorldLink</AssemblyName>
1311
<LangVersion>latest</LangVersion>
1412
<ImplicitUsings>enable</ImplicitUsings>
13+
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
14+
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
1515
</PropertyGroup>
1616

1717
<ItemGroup>
@@ -246,26 +246,10 @@
246246
<Reference Include="0Harmony">
247247
<HintPath>Libs\0Harmony.dll</HintPath>
248248
</Reference>
249-
250-
</ItemGroup>
251-
252-
<PropertyGroup>
253-
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
254-
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
255-
</PropertyGroup>
256-
257-
<ItemGroup>
258-
<Compile Include="BuildInfo.cs" />
259-
<Compile Include="Compat.cs" />
260-
<Compile Include="Core.cs" />
261-
<Compile Include="WorldLink\FutariClient.cs" />
262-
<Compile Include="WorldLink\FutariExt.cs" />
263-
<Compile Include="WorldLink\FutariPatch.cs" />
264-
<Compile Include="WorldLink\FutariSocket.cs" />
265-
<Compile Include="WorldLink\FutariTypes.cs" />
266249
</ItemGroup>
267250

268251
<ItemGroup>
269-
<Content Include=".config\dotnet-tools.json" />
252+
<None Remove="Libs/**" />
253+
<None Remove="tools/**" />
270254
</ItemGroup>
271255
</Project>

mod/build-install.cmd

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)