summaryrefslogtreecommitdiffstats
path: root/build-aux/flatpak/generate-json-manifest.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 17:42:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 17:42:51 +0000
commitba429d344132c088177e853cce8ff7181570b221 (patch)
tree87ebf15269b4301737abd1735baabba71be93622 /build-aux/flatpak/generate-json-manifest.sh
parentInitial commit. (diff)
downloadgedit-upstream.tar.xz
gedit-upstream.zip
Adding upstream version 44.2.upstream/44.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'build-aux/flatpak/generate-json-manifest.sh')
-rwxr-xr-xbuild-aux/flatpak/generate-json-manifest.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/build-aux/flatpak/generate-json-manifest.sh b/build-aux/flatpak/generate-json-manifest.sh
new file mode 100755
index 0000000..c8544e3
--- /dev/null
+++ b/build-aux/flatpak/generate-json-manifest.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+# SPDX-FileCopyrightText: Copyright 2022 Jake Dane
+# SPDX-License-Identifier: GPL-3.0-or-later
+
+# yq: A portable command-line YAML processor.
+# Currently hosted here: https://github.com/mikefarah/yq
+
+# At the time of writing, some tools around Flatpak (for example gnome-builder)
+# only supports the *.json format, but *.yml is easier to edit.
+
+yq eval 'org.gnome.gedit.yml' --output-format json > 'org.gnome.gedit.json'