Fix packaing and settings loading

This commit is contained in:
Alexey Osipov 2022-11-10 19:23:40 +03:00
parent e79b8fd2dc
commit 7db7616f2b
2 changed files with 5 additions and 4 deletions

View File

@ -11,7 +11,7 @@
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Title>Ckzg.Bindings</Title>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Version>0.1.0.1</Version>
<Version>0.1.0.2</Version>
</PropertyGroup>
<ItemGroup>
@ -25,12 +25,12 @@
<Content Include="runtimes\*\native\*.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<Pack>true</Pack>
<PackagePath>lib\$(TargetFramework)\runtimes</PackagePath>
<PackagePath>runtimes\</PackagePath>
</Content>
<Content Include="runtimes\*\native\*.so">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<Pack>true</Pack>
<PackagePath>lib\$(TargetFramework)\runtimes</PackagePath>
<PackagePath>runtimes\</PackagePath>
</Content>
</ItemGroup>

View File

@ -13,8 +13,9 @@ KZGSettings* load_trusted_setup_wrap(const char* file) {
if (f == NULL) { free(out); return NULL; }
if (load_trusted_setup(out, f) != C_KZG_OK) { free(out); return NULL; }
if (load_trusted_setup(out, f) != C_KZG_OK) { free(out); fclose(f); return NULL; }
fclose(f);
return out;
}