Skip to content

Commit 393d1ab

Browse files
committed
Bring to Nuget Package
1 parent a206348 commit 393d1ab

11 files changed

Lines changed: 175 additions & 25 deletions

File tree

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[bug] "
5+
labels: bug
6+
---
7+
8+
<!--
9+
Please provide the following information to quickly locate the problem
10+
-->
11+
12+
- System Environment:
13+
14+
15+
- Version:
16+
17+
18+
- Description of the issue:
19+
20+
21+
- Reproduction steps:
22+

.github/ISSUE_TEMPLATE/normal.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
name: Feel free to express
3+
about: Record something
4+
---
5+
6+
- Feel free to express yourself
7+

.github/ISSUE_TEMPLATE/question.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: I have a question
3+
about: Solve your problem
4+
title: "[question] "
5+
labels: question
6+
---
7+
8+
- Problem Description
9+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: I have suggestions
3+
about: Your suggestions may benefit everyone
4+
title: "[suggestion] "
5+
labels: suggestion
6+
---
7+
8+
- Your suggestions
9+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: pack
2+
3+
on:
4+
release:
5+
types: [created]
6+
push:
7+
branches:
8+
- master
9+
10+
jobs:
11+
build:
12+
runs-on: windows-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v2
19+
with:
20+
dotnet-version: 8.0.x
21+
22+
- name: Setup Windows SDK
23+
uses: GuillaumeFalourd/setup-windows10-sdk-action@v1.5
24+
25+
- name: Install dependencies
26+
run: dotnet restore
27+
28+
- name: Build
29+
run: dotnet build --configuration Release --no-restore
30+
31+
- name: Pack
32+
run: dotnet pack Core\LuaInterface\LuaInterface.csproj -c Release --no-build -o out
33+
34+
- name: Push NuGet package
35+
# run: dotnet nuget push "out\*.nupkg" -k ${{secrets.NUGET_AUTH_TOKEN}} --source https://api.nuget.org/v3/index.json
36+
uses: actions/upload-artifact@v3
37+
with:
38+
name: nuget-packages
39+
path: out/*.nupkg

Applications/LuaRunner/LuaRunner.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp2.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<AssemblyName>LuaRunner</AssemblyName>
77
<RootNamespace>LuaRunner</RootNamespace>
88
<StartupObject>LuaRunner.LuaNetRunner</StartupObject>
99
</PropertyGroup>
1010

1111
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
12-
<DefineConstants>DEBUG;NETCOREAPP2_0</DefineConstants>
13-
<OutputPath>..\..\Run\Debug\netcoreapp2.0\</OutputPath>
12+
<DefineConstants>DEBUG;NET8</DefineConstants>
13+
<OutputPath>..\..\Run\Debug\net8.0\</OutputPath>
1414
</PropertyGroup>
1515

1616
<ItemGroup>

Core/LuaInterface/LuaInterface.csproj

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,48 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<RootNamespace>LuaInterface</RootNamespace>
6+
<AssemblyVersion>2.0.4.0</AssemblyVersion>
7+
<FileVersion>2.0.4.0</FileVersion>
8+
<Version>$(VersionPrefix)2.0.4.0</Version>
9+
<Authors>megax orthographic-pedant jmurdick ema</Authors>
10+
<Company>Lemutec</Company>
11+
<Description>Lightweight LuaInterface for .NET</Description>
12+
<PackageProjectUrl>https://github.com/lemutec/LuaIntercace</PackageProjectUrl>
13+
<RepositoryUrl>https://github.com/lemutec/LuaIntercace</RepositoryUrl>
14+
<RepositoryType>git</RepositoryType>
15+
<PackageTags>.NET Lua</PackageTags>
16+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
17+
<PackageReadmeFile>README.md</PackageReadmeFile>
18+
<PackageIcon>logo.png</PackageIcon>
19+
<NoWarn>1701;1702;3014;3021;3002;3001;3003;8618;8625;8601;8602;8603;8600;8604;</NoWarn>
620
</PropertyGroup>
721

822
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
9-
<DefineConstants>DEBUG;NETSTANDARD2_0</DefineConstants>
23+
<DefineConstants>TRACE;DEBUG;NETSTANDARD2_0;LUA_CORE;_WIN32;LUA_COMPAT_VARARG;LUA_COMPAT_MOD;LUA_COMPAT_GFIND;CATCH_EXCEPTIONS</DefineConstants>
1024
<OutputPath>..\..\Run\Debug\netstandard2.0\</OutputPath>
1125
</PropertyGroup>
1226

27+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
28+
<DefineConstants>NETSTANDARD2_0;LUA_CORE;_WIN32;LUA_COMPAT_VARARG;LUA_COMPAT_MOD;LUA_COMPAT_GFIND;CATCH_EXCEPTIONS</DefineConstants>
29+
</PropertyGroup>
30+
1331
<ItemGroup>
14-
<PackageReference Include="System.Reflection.Emit" Version="4.3.0" />
32+
<None Include="..\..\README.md" Pack="true" PackagePath="" />
33+
<None Include="..\..\logo.png" Pack="true" PackagePath="" />
1534
</ItemGroup>
1635

1736
<ItemGroup>
37+
<PackageReference Include="System.Reflection.Emit" Version="4.7.0" />
38+
</ItemGroup>
39+
40+
<ItemGroup Condition=" '$(Configuration)' == 'ProjectReference'">
1841
<ProjectReference Include="..\KopiLua\KopiLua.csproj" />
1942
</ItemGroup>
2043

44+
<ItemGroup>
45+
<Compile Include="..\KopiLua\**\*.cs" Link="KopiLua\%(RecursiveDir)%(FileName)%(Extension)" />
46+
<Compile Remove="..\KopiLua\obj\Debug\netstandard2.0\**" />
47+
<Compile Remove="..\KopiLua\obj\Release\netstandard2.0\**" />
48+
</ItemGroup>
49+
2150
</Project>

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2011-2024 LuaInterface Contributors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

LuaInterface.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26730.3
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.1.32210.238
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Applications", "Applications", "{B13128D8-A4F3-4C53-A4C6-F2EA34F527BD}"
77
EndProject

Readme.md

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
LuaInterface 2.0.4 [![Build Status](https://travis-ci.org/Jakosa/LuaInterface.svg?branch=master)](https://travis-ci.org/Jakosa/LuaInterface) [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/Jakosa/luainterface/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
2-
------------------
1+
[![NuGet](https://img.shields.io/nuget/v/LuaInterface.svg)](https://nuget.org/packages/LuaInterface) [![GitHub license](https://img.shields.io/github/license/lemutec/LuaInterface)](https://github.com/lemutec/LuaInterface/blob/master/LICENSE) [![Actions](https://github.com/lemutec/LuaInterface/actions/workflows/library.nuget.yml/badge.svg)](https://github.com/lemutec/LuaInterface/actions/workflows/library.nuget.yml)
32

4-
Copyright © 2003-2006 Fabio Mascarenhas de Queiroz
3+
LuaInterface
4+
---
55

6-
Maintainer: Craig Presti, craig@vastpark.com
6+
Let the lightweight LuaInterface continue to maintain certain functionalities.
77

8-
lua51.dll and lua51.exe are Copyright © 2005 Tecgraf, PUC-Rio
8+
Ported from https://github.com/jmurdick/LuaInterface.
99

1010

1111
Getting started with LuaInterface:
12-
---------
12+
---
1313
* Use LuaRunner.exe to run samples/testluaform.lua
1414
* Run TestLua.exe to see some more test cases
1515
* Look at src/TestLuaInterface/TestLua to see example usage from C#
@@ -20,8 +20,14 @@ methods from Lua and use LuaInterface from within your .net application.
2020
.net from inside Lua
2121
* More instructions for installing and using in the doc/guide.pdf file.
2222

23+
## What's new in LuaInterface 2.0.4
24+
25+
- Change: Converted libraries to .NET Standard 2.0 and LuaRunner application to .NET 8.0
26+
- Added: Bring to Nuget Package
27+
- Other: Some information was not recorded
28+
2329
What's new in LuaInterface 2.0.3
24-
------------------------------
30+
---
2531
* Fix: Private methods accessible via LuaInterface
2632
* Fix: Method overload lookup failures
2733
* Fix: Lua DoFile memory leaks when file not found (submitted by Paul Moore)
@@ -36,32 +42,32 @@ What's new in LuaInterface 2.0.3
3642

3743

3844
What's new in LuaInterface 2.0.1
39-
------------------------------
45+
---
4046
* Apparently the 2.0 built binaries had an issue for some users, this is just a rebuild with the lua sources pulled into the LuaInterface.zip
4147

4248
What's new in LuaInterface 2.0
43-
------------------------------
49+
---
4450
* The base lua5.1.2 library is now built as entirely manged code. LuaInterface is now pure CIL
4551
* Various adapters to connect the older x86 version of lua are no longer needed
4652
* Performance fixes contributed by Toby Lawrence, Oliver Nemoz and Craig Presti
4753

4854
What's new in LuaInterface 1.5.3
49-
----------
55+
---
5056
* Internal lua panics (due to API violations) now throw LuaExceptions into .net
5157
* If .net code throws an exception into Lua and lua does not handle it, the
5258
original exception is forwarded back out to .net land.
5359
* Fix bug in the Lua 5.1.1 gmatch C code - it was improperly assuming gmatch
5460
only works with tables.
5561

5662
What's new in LuaInterface 1.5.2
57-
----------
63+
---
5864
* Overriding C# methods from Lua is fixed (broken with .net 2.0!)
5965
* Registering static C# functions for Lua is fixed (broken with Lua-5.1.1)
6066
* Rebuilt to fix linking problems with the binaries included in 1.5.1
6167
* RegisterFunction has been leaking things onto the stack
6268

6369
What's new in LuaInterface 1.5.1
64-
----------
70+
---
6571
Fix a serious bug w.r.t. garbage collection - made especially apparent
6672
with the new lua5.1 switch: If you were *very* unlucky with timing
6773
sometimes Lua would loose track of pointers to CLR functions.
@@ -76,7 +82,7 @@ course you can still use a colon if an _instance_ is being used.
7682
Static method calls are now much faster (due to better caching).
7783

7884
What's new in LuaInterface 1.5
79-
----------
85+
---
8086
LuaInterface is now updated to be based on Lua5.1.1. You can either use
8187
your own build/binaries for Lua5.1.1 or use the version distributed here.
8288
(Lots of thanks to Steffen Itterheim for this work!)
@@ -91,7 +97,7 @@ invalid pointer.
9197

9298
Fixed a bug when strings with embedded null characters are passed in or
9399
out of Lua (Thanks to Daniel Néri for the report & fix!)
94-
100+
95101
The native components in LuaInterface (i.e. Lua51 and the loader) are
96102
both built as release builds - to prevent problems loading standard
97103
windows libraries.
@@ -101,7 +107,7 @@ modify Lua internals (a built version of lua51.dll is included in the
101107
regular LuaInterface distribution)
102108

103109
What's New in LuaInterface 1.4
104-
----------
110+
---
105111

106112
Note: Fabio area of interest has moved off in other directions (hopefully only temporarily).
107113
I've talked with Fabio and he's said he's okay with me doing a new release with various fixes
@@ -135,7 +141,7 @@ download this file unless you want to modify Lua internals (a built version
135141
of lua50.dll is included in the regular LuaInterface distribution)
136142

137143
What's New in LuaInterface 1.3
138-
----------
144+
---
139145

140146
LuaInterface now works with LuaBinaries Release 2 (http://luabinaries.luaforge.net)
141147
and Compat-5.1 Release 3 (http://luaforge.net/projects/compat). The loader DLL is now
@@ -154,7 +160,7 @@ anonymous contribution in the Lua wiki). Check the _alt files in the samples fol
154160

155161

156162
What's New in LuaInterface 1.2.1
157-
--------------------------------
163+
---
158164

159165
Now checks if two LuaInterface.Lua instances are trying to share the same Lua state,
160166
and throws an exception if this is the case. Also included readonly clauses in public
@@ -164,7 +170,7 @@ This version includes the source of LuaInterfaceLoader.dll, with VS.Net 2003 pro
164170
files.
165171

166172
What's New in LuaInterface 1.2
167-
------------------------------
173+
---
168174

169175
LuaInterface now can be loaded as a module, so you can use the lua standalone
170176
interpreter to run scripts. Thanks to Paul Winwood for this idea and sample code
@@ -186,3 +192,11 @@ instead of
186192
Make sure the assemblies of the types you are passing have been loaded, or the call
187193
will fail. The test cases in src/TestLuaInterface/TestLua.cs have examples of the new
188194
functions.
195+
196+
## Thanks to
197+
198+
Copyright © 2003-2006 Fabio Mascarenhas de Queiroz
199+
200+
Maintainer: Craig Presti, craig@vastpark.com
201+
202+
lua51.dll and lua51.exe are Copyright © 2005 Tecgraf, PUC-Rio

0 commit comments

Comments
 (0)