Skip to content

diamondburned/gotk4-adwaita

Repository files navigation

gotk4-adwaita

Package documentation

Go generated bindings for Libadwaita.

Update Bindings

Currently, these bindings are built against the version 1.2.0 of Libadwaita.

The easiest way to upgrade the bindings is to fork this repository and use Nix to regenerate the bindings. Adjust the Nix specific files, as needed.

For completeness, instructions for Flatpak as well as a manual way are provided.

Nix

For building with Nix, please refer to the gotk4 documentation.

Flatpak

You should follow these instructions, if you plan to package your application as a Flatpak.

This way, you can generate bindings for the version of Libadwaita, provided by your chosen runtime or for the newest version of Adwaita.

To generate the bindings, do the following:

$ flatpak-builder --force-clean build-dir io.github.diamondburned.gotk4_adwaita.yml
$ flatpak-builder --run build-dir io.github.diamondburned.gotk4_adwaita.yml go generate

You might need to install the referenced SDKs and runtimes, first. You might want to read the Flatpak building introduction.

Manual

You should use the manual way, if you do want to use the version of Libadwaita, your system provides.

If you do not want to install all the libraries onto your system, you can use a tool like Toolbox.

Optionally enter your toolbox via toolbox enter and run the following command afterwards.

$ go generate

Install the missing system-libraries, until the generation succeeds.

About

Autogenerated Adwaita bindings for Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published