webview-zig icon indicating copy to clipboard operation
webview-zig copied to clipboard

update to 0.14.0

Open jellli opened this issue 8 months ago • 0 comments

The current repository encountered an error when attempting to compile at version 0.14.0:

error: no field or member function named 'defineCMacro' in 'Build.Step.Compile'
staticLib.defineCMacro("WEBVIEW_STATIC", null);

defineCMacro has been removed, defineCMacro should be replaced with:

staticLib.root_module.addCMacro("WEBVIEW_STATIC", "");

Additionally, build.zig.zon has been handled according to the following changes, see New Package Hash Format

  • name must be a valid bare Zig-identifier.

  • new fingerprint field

It is worth noting that the new addLibrary Function has replaced the original addStaticLibrary and addSharedLibrary, as I am not familiar with this part and these two functions have not been fully deprecated in version 0.14.0, so I have not handled them.

jellli avatar Apr 29 '25 09:04 jellli