Skip to content

Commit ea0876e

Browse files
committed
Added license to output, version should be seen without the commit hash
1 parent cba7d3c commit ea0876e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

SlyMultiTrainer/Form1.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ private void Init()
3838
var version = Assembly.GetExecutingAssembly()
3939
.GetCustomAttribute<AssemblyInformationalVersionAttribute>()
4040
?.InformationalVersion;
41+
if (version!.Contains('+'))
42+
{
43+
version = version!.Split('+')[0];
44+
}
45+
4146
_formTitle = $"Sly Multi Trainer (v{version})";
4247
bgWorkerMain.RunWorkerAsync();
4348
}

SlyMultiTrainer/SlyMultiTrainer.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@
6868
<Content Include="..\SlyMultiTrainer-Changelog.txt">
6969
<CopyToPublishDirectory>Always</CopyToPublishDirectory>
7070
</Content>
71+
<Content Include="..\LICENSE.txt">
72+
<CopyToPublishDirectory>Always</CopyToPublishDirectory>
73+
</Content>
7174
<Content Include="Img\icon_1_256x256.ico" />
7275
</ItemGroup>
7376

0 commit comments

Comments
 (0)