Browse Source

Add NuGet support

NX 6 years ago
parent
commit
c66e429df1
3 changed files with 38 additions and 5 deletions
  1. 33 0
      ENet-CSharp.nuspec
  2. 2 2
      Source/Managed/ENet.cs
  3. 3 3
      Source/Native/enet.h

+ 33 - 0
ENet-CSharp.nuspec

@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
+  <metadata>
+    <id>ENet-CSharp</id>
+    <version>2.2.0</version>
+    <title>ENet-CSharp</title>
+    <authors>Stanislav Denisov</authors>
+    <owners>nxrighthere</owners>
+    <requireLicenseAcceptance>false</requireLicenseAcceptance>
+    <license type="file">license\license.txt</license>
+    <projectUrl>https://github.com/nxrighthere/ENet-CSharp</projectUrl>
+    <description>Reliable UDP networking library extended for the .NET environment</description>
+    <summary></summary>
+    <releaseNotes></releaseNotes>
+    <copyright>(c) 2019 Stanislav Denisov</copyright>
+    <tags>networking udp protocol ipv4 ipv6 gamedev</tags>
+  </metadata>
+  <files>
+    <file src="lib\net35\ENet-CSharp.dll" target="lib\net35\ENet-CSharp.dll" />
+    <file src="lib\net35\enet.dll" target="lib\net35\enet.dll" />
+    <file src="lib\net35\enet.dylib" target="lib\net35\enet.dylib" />
+    <file src="lib\net35\libenet.so" target="lib\net35\libenet.so" />
+    <file src="lib\netcoreapp2.0\ENet-CSharp.dll" target="lib\netcoreapp2.0\ENet-CSharp.dll" />
+    <file src="lib\netcoreapp2.0\enet.dll" target="lib\netcoreapp2.0\enet.dll" />
+    <file src="lib\netcoreapp2.0\enet.dylib" target="lib\netcoreapp2.0\enet.dylib" />
+    <file src="lib\netcoreapp2.0\libenet.so" target="lib\netcoreapp2.0\libenet.so" />
+    <file src="lib\netstandard2.0\ENet-CSharp.dll" target="lib\netstandard2.0\ENet-CSharp.dll" />
+    <file src="lib\netstandard2.0\enet.dll" target="lib\netstandard2.0\enet.dll" />
+    <file src="lib\netstandard2.0\enet.dylib" target="lib\netstandard2.0\enet.dylib" />
+    <file src="lib\netstandard2.0\libenet.so" target="lib\netstandard2.0\libenet.so" />
+    <file src="license\license.txt" target="license\license.txt" />
+  </files>
+</package>

+ 2 - 2
Source/Managed/ENet.cs

@@ -830,7 +830,7 @@ namespace ENet {
 		public const uint timeoutLimit = 32;
 		public const uint timeoutMinimum = 5000;
 		public const uint timeoutMaximum = 30000;
-		public const uint version = (2 << 16) | (1 << 8) | (9);
+		public const uint version = (2 << 16) | (2 << 8) | (0);
 
 		public static bool Initialize() {
 			return Native.enet_initialize() == 0;
@@ -1027,4 +1027,4 @@ namespace ENet {
 		[DllImport(nativeLibrary, CallingConvention = CallingConvention.Cdecl)]
 		internal static extern void enet_peer_reset(IntPtr peer);
 	}
-}
+}

+ 3 - 3
Source/Native/enet.h

@@ -34,8 +34,8 @@
 #endif
 
 #define ENET_VERSION_MAJOR 2
-#define ENET_VERSION_MINOR 1
-#define ENET_VERSION_PATCH 9
+#define ENET_VERSION_MINOR 2
+#define ENET_VERSION_PATCH 0
 #define ENET_VERSION_CREATE(major, minor, patch) (((major) << 16) | ((minor) << 8) | (patch))
 #define ENET_VERSION_GET_MAJOR(version) (((version) >> 16) & 0xFF)
 #define ENET_VERSION_GET_MINOR(version) (((version) >> 8) & 0xFF)
@@ -5053,4 +5053,4 @@ extern "C" {
 }
 #endif
 #endif
-#endif
+#endif