Browse Source

Add: files for nuget package

AnnulusGames 1 year ago
parent
commit
e052f1bf28
3 changed files with 31 additions and 1 deletions
  1. 16 0
      Directory.Build.props
  2. BIN
      Icon.png
  3. 15 1
      src/Lua/Lua.csproj

+ 16 - 0
Directory.Build.props

@@ -0,0 +1,16 @@
+<Project>
+
+    <PropertyGroup>
+        <!-- NuGet Packaging -->
+        <PackageVersion>0.1.0</PackageVersion>
+        <Authors>Annulus Games</Authors>
+        <Copyright>© Annulus Games</Copyright>
+        <PackageProjectUrl>https://github.com/AnnulusGames/Lua-CSharp</PackageProjectUrl>
+        <RepositoryUrl>$(PackageProjectUrl)</RepositoryUrl>
+        <RepositoryType>git</RepositoryType>
+        <PackageLicenseExpression>MIT</PackageLicenseExpression>
+        <PackageReadmeFile>README.md</PackageReadmeFile>
+        <PackageIcon>Icon.png</PackageIcon>
+    </PropertyGroup>
+
+</Project>

BIN
Icon.png


+ 15 - 1
src/Lua/Lua.csproj

@@ -6,6 +6,11 @@
     <ImplicitUsings>enable</ImplicitUsings>
     <Nullable>enable</Nullable>
     <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+
+    <!-- NuGet Packaging -->
+    <PackageId>LuaCSharp</PackageId>
+    <PackageTags>lua;interpreter</PackageTags>
+    <Description>High performance Lua interpreter implemented in C# for .NET and Unity</Description>
   </PropertyGroup>
 
   <ItemGroup>
@@ -13,7 +18,16 @@
       <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
       <PrivateAssets>all</PrivateAssets>
     </PackageReference>
-    <PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
+  </ItemGroup>
+
+  <ItemGroup Condition="$(TargetFramework) == 'netstandard2.1'">
+      <PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
+  </ItemGroup>
+  
+  <ItemGroup>
+      <None Include="../../Icon.png" Pack="true" PackagePath="/" />
+      <None Include="..\..\README.md" Pack="true" PackagePath="README.md"/>
+      <EmbeddedResource Include="..\..\LICENSE" />
   </ItemGroup>
 
 </Project>