Watch
2
0
Fork
You've already forked raylib-cs
0

Merge branch 'master' into android

This commit is contained in:
anggape 2023-07-25 11:36:05 +07:00
commit dfbebe32d8
No known key found for this signature in database
GPG key ID: 318EF680D0181D86
3 changed files with 8 additions and 4 deletions

View file

@ -240,13 +240,13 @@ jobs:
- name: Upload NuGet Package As Artifact
uses: actions/upload-artifact@v3
with:
path: Raylib-cs/bin/Release/Raylib-cs.${{ needs.prepare.outputs.pkgversion }}.nupkg
path: Raylib-cs/bin/Release/Raylib-cs.${{ needs.prepare.outputs.pkgversion }}.*pkg
- name: Upload NuGet Package As Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: Raylib-cs/bin/Release/Raylib-cs.${{ needs.prepare.outputs.pkgversion }}.nupkg
files: Raylib-cs/bin/Release/Raylib-cs.${{ needs.prepare.outputs.pkgversion }}.*pkg
- name: Publish to NuGet
if: startsWith(github.ref, 'refs/tags/')

View file

@ -16,6 +16,8 @@
<PackageVersion>4.5.0.2</PackageVersion>
<Authors>Chris Dill, Raysan5</Authors>
<PackProject>true</PackProject>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PackageLicenseExpression>Zlib</PackageLicenseExpression>
<Title>Raylib-cs</Title>
<Description>C# bindings for raylib - A simple and easy-to-use library to learn videogames programming</Description>
@ -23,6 +25,7 @@
<PackageTags>raylib;bindings;gamedev</PackageTags>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/ChrisDill/Raylib-cs/</RepositoryUrl>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageProjectUrl>https://www.raylib.com/</PackageProjectUrl>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
@ -35,6 +38,7 @@
<ItemGroup>
<PackageReference Include="System.Numerics.Vectors" Version="4.5.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
</ItemGroup>
<ItemGroup>

View file

@ -13,7 +13,7 @@ namespace Raylib_cs
public UTF8Buffer(string text)
{
data = Marshal.StringToCoTaskMemUTF8(text);
this.data = Marshal.StringToHGlobalAnsi(text);
}
public unsafe sbyte* AsPointer()
@ -23,7 +23,7 @@ namespace Raylib_cs
public void Dispose()
{
Marshal.FreeCoTaskMem(data);
Marshal.FreeHGlobal(data);
}
}