diamondburned / gotk4-adwaita

Autogenerated Adwaita bindings for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:GNU Affero General Public License v3.0


Languages

Language:Go 80.5%Language:Nix 19.5%