Gimp scripts as extension

Alexander Larsson alexl at redhat.com
Mon Aug 6 12:29:26 UTC 2018


On Fri, Jul 13, 2018 at 4:37 PM Tobias Jakobs <tobias.jakobs at gmail.com> wrote:
>
> Hello,
>
> I tried to modify the GIMP manifest, to be able to make scripts as
> separate extensions. I chooses  scripts over plugins, because gimp
> scripts don't need to be compiled and only needs to be placed into
> /app/share/gimp/2.0/scripts.
>
> Here is how I changed the "org.gimp.GIMP.json" from
> https://github.com/flathub/org.gimp.GIMP
>
> https://drive.google.com/open?id=0B3XOif5x6V0ORnlyNXh5cFlralBOZlhsX0dHQ1hCVGdoaGVn
>
> I've added this section:
> ...
>     "add-extensions": {
>         "org.gimp.GIMP.Script": {
>         "version": "2",
>         "directory": "share/gimp/2.0/scripts",
>         "add-ld-path": "lib",
>         "merge-dirs": "",
>         "subdirectories": false,
>         "no-autodownload": true,
>         "autodelete": true
>         }
> ...

Use this instead:

   "add-extensions": {
       "org.gimp.GIMP.Script": {
       "version": "2",
       "directory": "share/gimp/2.0/scripts",
       "subdirectories": true,
       "no-autodownload": true
       }
   },

And then i needed this diff:

diff -up gimp_script/org.gimp.GIMP.Script.Test.json.orig
gimp_script/org.gimp.GIMP.Script.Test.json
--- gimp_script/org.gimp.GIMP.Script.Test.json.orig    2018-08-06
14:24:35.572241583 +0200
+++ gimp_script/org.gimp.GIMP.Script.Test.json    2018-08-06
14:26:57.431296153 +0200
@@ -13,13 +13,17 @@
       "name": "test",
       "buildsystem": "simple",
       "build-commands": [
-                "install -D alien-glow-arrow.scm
share/gimp/2.0/scripts/alien-glow-arrow.scm",
-                "install -D alien-glow-arrow.scm
share/metainfo/org.gimp.GIMP.Script.Test.appdata.xml"
+                "install -D alien-glow-arrow.scm
$FLATPAK_DEST/alien-glow-arrow.scm",
+                "install -D org.gimp.GIMP.Script.Test.appdata.xml
$FLATPAK_DEST/share/metainfo/org.gimp.GIMP.Script.Test.appdata.xml"
             ],
             "sources": [
                 {
                     "type": "file",
                     "path": "alien-glow-arrow.scm"
+                },
+                {
+                    "type": "file",
+                    "path": "org.gimp.GIMP.Script.Test.appdata.xml"
                 }
             ]
     }


More information about the Flatpak mailing list