Fix packaing and settings loading
This commit is contained in:
parent
e79b8fd2dc
commit
7db7616f2b
|
@ -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>
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue