From 94f33225b58ab83ffa0d550858352d5378fc70b0 Mon Sep 17 00:00:00 2001 From: lucor Date: Sun, 12 Jan 2025 12:28:05 +0100 Subject: [PATCH] metadata: update Fyne metadata to v2.5.3 --- internal/metadata/data.go | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/internal/metadata/data.go b/internal/metadata/data.go index f690ad0c..55796b34 100644 --- a/internal/metadata/data.go +++ b/internal/metadata/data.go @@ -1,9 +1,17 @@ package metadata +// This file containts the Fyne metadata +// @see https://github.com/fyne-io/fyne/blob/v2.5.3/internal/metadata/data.go + // FyneApp describes the top level metadata for building a fyne application type FyneApp struct { - Website string `toml:",omitempty"` - Details AppDetails + Website string `toml:",omitempty"` + Details AppDetails + Development map[string]string `toml:",omitempty"` + Release map[string]string `toml:",omitempty"` + Source *AppSource `toml:",omitempty"` + LinuxAndBSD *LinuxAndBSD `toml:",omitempty"` + Languages []string `toml:",omitempty"` } // AppDetails describes the build information, this group may be OS or arch specific @@ -13,3 +21,16 @@ type AppDetails struct { Version string `toml:",omitempty"` Build int `toml:",omitempty"` } + +type AppSource struct { + Repo, Dir string `toml:",omitempty"` +} + +// LinuxAndBSD describes specific metadata for desktop files on Linux and BSD. +type LinuxAndBSD struct { + GenericName string `toml:",omitempty"` + Categories []string `toml:",omitempty"` + Comment string `toml:",omitempty"` + Keywords []string `toml:",omitempty"` + ExecParams string `toml:",omitempty"` +}