From a31f851707353e3b9e33d4e35ed857ceba7064fb Mon Sep 17 00:00:00 2001 From: Stephen Horvath Date: Sat, 27 Sep 2025 18:21:11 +1000 Subject: [PATCH] More changes for Flathub submission --- au.stevetech.yafi.json | 13 +------------ flathub.json | 3 +++ python3-cros_ec_python.json | 14 ++++++++++++++ 3 files changed, 18 insertions(+), 12 deletions(-) create mode 100644 flathub.json create mode 100644 python3-cros_ec_python.json diff --git a/au.stevetech.yafi.json b/au.stevetech.yafi.json index 44e87f3..8f63e3f 100644 --- a/au.stevetech.yafi.json +++ b/au.stevetech.yafi.json @@ -22,6 +22,7 @@ "*.a" ], "modules" : [ + "python3-cros_ec_python.json", { "name" : "yafi", "builddir" : true, @@ -32,18 +33,6 @@ "path" : "." } ] - }, - { - "name": "cros_ec_python", - "buildsystem": "simple", - "build-options": { - "build-args": [ - "--share=network" - ] - }, - "build-commands": [ - "pip3 install --prefix=${FLATPAK_DEST} --no-cache-dir \"cros_ec_python>=0.2.0\"" - ] } ] } diff --git a/flathub.json b/flathub.json new file mode 100644 index 0000000..c82de06 --- /dev/null +++ b/flathub.json @@ -0,0 +1,3 @@ +{ + "only-arches": ["x86_64"] +} \ No newline at end of file diff --git a/python3-cros_ec_python.json b/python3-cros_ec_python.json new file mode 100644 index 0000000..f6e23c0 --- /dev/null +++ b/python3-cros_ec_python.json @@ -0,0 +1,14 @@ +{ + "name": "python3-cros_ec_python", + "buildsystem": "simple", + "build-commands": [ + "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"cros_ec_python\" --no-build-isolation" + ], + "sources": [ + { + "type": "file", + "url": "https://files.pythonhosted.org/packages/33/11/c23a7acaa333589921a2f524517eb719dfb72628153ae22fcdf2e9052ac6/cros_ec_python-0.2.0-py3-none-any.whl", + "sha256": "d38e493fbcaf23bc4b613d1342a036cecc6506284afc74f37013a3eac85a01b9" + } + ] +}