This code:
{
"id": "com.pojtinger.felicitas.SenbaraGtkExample",
"runtime": "org.gnome.Platform",
"runtime-version": "49",
"sdk": "org.gnome.Sdk",
"sdk-extensions": ["org.freedesktop.Sdk.Extension.golang"],
"command": "example.js",
"build-options": {
"append-path": "/usr/lib/sdk/golang/bin"
},
"finish-args": [
"--socket=wayland",
"--socket=fallback-x11",
"--share=ipc",
"--device=dri"
],
"modules": [
{
"name": "senbaragtk",
"buildsystem": "meson",
"sources": [{ "type": "dir", "path": "." }, "go.mod.json"]
},
{
"name": "senbaragtkexample",
"buildsystem": "simple",
"build-commands": ["install -Dm755 example.js /app/bin/example.js"],
"sources": [{ "type": "file", "path": "example.js" }]
}
]
}
The app is running to the right as an overlay. The text is in German.
New #puregotk #GNOME hacking milestone: A GObject library built with Go can now be installed as a simple Meson module in Flatpak (fully offline/with tracked dependencies, so this should work for Flatpak too), and then be used by any GIR-compatible language (Go, JS, Python etc.).