Skip to content

Commit df4b44e

Browse files
merge
2 parents 2ac36ce + 382cc5f commit df4b44e

File tree

4 files changed

+43
-12
lines changed

4 files changed

+43
-12
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,13 @@ jobs:
154154
- name: Run Garry's Mod
155155
shell: bash
156156
run: |
157+
<<<<<<< HEAD
157158
powershell -Command './gmod/srcds_win64.exe -console -systemtest -condebug -game "garrysmod" +exec "server.cfg" +gamemode sandbox +map gm_construct +maxplayers 16 +sv_hibernate_think 1'
158159
sleep 15
160+
=======
161+
powershell -Command './gmod/srcds_win64.exe -console -systemtest -game "garrysmod" +exec "server.cfg" +gamemode sandbox +map gm_construct +maxplayers 16 +sv_hibernate_think 1'
162+
powershell -Command 'Wait-Process -Name srcds_win64'
163+
>>>>>>> sup43_ci_windows_powershell_wait
159164

160165
- name: Print test log
161166
shell: bash

gm_dotnet_managed/GmodNET.API/GmodNET.API.csproj

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,36 @@
22

33
<PropertyGroup>
44
<TargetFramework>net5.0</TargetFramework>
5-
<VersionFilePath>../../version.json</VersionFilePath>
5+
<VersionFilePath>../../version.json</VersionFilePath>
66
<PackageLicenseExpression>MIT</PackageLicenseExpression>
77
<Product>GmodNET API</Product>
88
<Description>GmodNET API library contains all necessary interfaces to write a GmodNET module.</Description>
9-
<RepositoryUrl>https://github.com/GlebChili/GmodDotNet</RepositoryUrl>
9+
<RepositoryUrl>https://github.com/GmodNET/GmodDotNet</RepositoryUrl>
1010
<RepositoryType>Git</RepositoryType>
1111
<PackageTags>garrysmod; GmodNET</PackageTags>
1212
<PackageProjectUrl>https://github.com/GlebChili/GmodDotNet</PackageProjectUrl>
1313
<PackageIconUrl>https://raw.githubusercontent.com/GlebChili/GmodDotNet/devel_netcore_2/MetaInfo/Logo/gmodnetlogo.png</PackageIconUrl>
14-
<Company>GmodNET</Company>
15-
<Copyright>Copyright (c) 2018 - 2020 Gleb Krasilich, GmodNET</Copyright>
16-
<Product>$(Description)</Product>
14+
<Company>GmodNET</Company>
15+
<Copyright>Copyright (c) 2018 - 2020 Gleb Krasilich, GmodNET</Copyright>
16+
<Product>$(Description)</Product>
17+
18+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
19+
<IncludeSymbols>true</IncludeSymbols>
20+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1721
</PropertyGroup>
1822

1923
<PropertyGroup>
2024
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
21-
<DebugType></DebugType>
25+
<DebugType>Portable</DebugType>
2226
<DocumentationFile>bin\Release\netcoreapp3.1\GmodNET.API.xml</DocumentationFile>
27+
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
2328
</PropertyGroup>
2429

2530
<ItemGroup>
2631
<PackageReference Include="GmodNET.VersionTool.Target" Version="0.2.0-alpha.1.22426226.dev">
2732
<PrivateAssets>all</PrivateAssets>
2833
</PackageReference>
34+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
2935
<InternalsVisibleTo Include="GmodNET" />
3036
</ItemGroup>
3137

gm_dotnet_managed/GmodNET/GmodNET.csproj

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,32 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFramework>net5.0</TargetFramework>
6-
<VersionFilePath>../../version.json</VersionFilePath>
6+
<VersionFilePath>../../version.json</VersionFilePath>
77
<StartupObject>GmodNET.BuidReq</StartupObject>
88
<Description>GmodNET managed module loader.</Description>
99
<PackageLicenseExpression>MIT</PackageLicenseExpression>
10-
<RepositoryUrl>https://github.com/GlebChili/GmodDotNet</RepositoryUrl>
10+
<RepositoryUrl>https://github.com/GmodNET/GmodDotNet</RepositoryUrl>
1111
<RepositoryType>Git</RepositoryType>
12-
<Company>GmodNET</Company>
13-
<Product>$(Description)</Product>
14-
<Copyright>Copyright (c) 2018 - 2020 Gleb Krasilich, GmodNET</Copyright>
12+
<Company>GmodNET</Company>
13+
<Product>$(Description)</Product>
14+
<Copyright>Copyright (c) 2018 - 2020 Gleb Krasilich, GmodNET</Copyright>
15+
16+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
17+
<IncludeSymbols>true</IncludeSymbols>
18+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1519
</PropertyGroup>
1620

1721
<PropertyGroup>
1822
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
23+
<DebugType>Portable</DebugType>
24+
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
1925
</PropertyGroup>
2026

2127
<ItemGroup>
2228
<PackageReference Include="GmodNET.VersionTool.Target" Version="0.2.0-alpha.1.22426226.dev">
2329
<PrivateAssets>all</PrivateAssets>
2430
</PackageReference>
31+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
2532
</ItemGroup>
2633

2734
<ItemGroup>

gm_dotnet_managed/GmodNET/Startup.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ internal static unsafe IntPtr Main(IntPtr lua_base, IntPtr native_version_string
3636

3737
if (native_version != full_assembly_version)
3838
{
39-
throw new Exception("GmodNET version does not match with the version of dotnet_loader.");
39+
throw new Exception($"GmodNET version does not match with the version of dotnet_loader. Managed version: {full_assembly_version}; " +
40+
$"Native version: {native_version}");
4041
}
4142

4243
if (FirstRun)
@@ -166,6 +167,18 @@ internal static unsafe IntPtr Main(IntPtr lua_base, IntPtr native_version_string
166167

167168
ILua lua = new Lua(lua_base);
168169

170+
lua.PushSpecial(SPECIAL_TABLES.SPECIAL_GLOB);
171+
lua.GetField(-1, "print");
172+
lua.PushString(
173+
" _____ _ _ ______ _______ \n"+
174+
" / ____| | \\ | | | ____| |__ __|\n"+
175+
" | | __ | \\| | | |__ | | \n"+
176+
" | | |_ | | . ` | | __| | | \n"+
177+
" | |__| | _ | |\\ | | |____ | | \n"+
178+
" \\_____| (_) |_| \\_| |______| |_| \n");
179+
lua.MCall(1, 0);
180+
lua.Pop(1);
181+
169182
lua.PushSpecial(SPECIAL_TABLES.SPECIAL_GLOB);
170183
lua.GetField(-1, "print");
171184
lua.PushString("GmodNET by Gleb Krasilich and GmodNET team. Version " + friendly_version + " codename " + version_codename);

0 commit comments

Comments
 (0)