{
 "app_id": "cc.arduino.IDE2",
 "source_url": "https://raw.githubusercontent.com/flathub/cc.arduino.IDE2/master/cc.arduino.IDE2.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=all",
  "--filesystem=home",
  "--filesystem=xdg-run/keyring",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.freedesktop.secrets",
  "--system-talk-name=org.gtk.vfs.*",
  "--system-talk-name=org.freedesktop.UDisks2"
 ],
 "module_count": 6,
 "fetched_at": "2026-09-20T06:29:40.382799+00:00",
 "manifest": {
  "app-id": "cc.arduino.IDE2",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "arduino-ide",
  "separate-locales": false,
  "finish-args": [
   "--socket=x11",
   "--socket=pulseaudio",
   "--share=ipc",
   "--share=network",
   "--device=all",
   "--filesystem=home",
   "--filesystem=xdg-run/keyring",
   "--system-talk-name=org.gtk.vfs.*",
   "--talk-name=org.freedesktop.secrets",
   "--talk-name=com.canonical.AppMenu.Registrar",
   "--system-talk-name=org.freedesktop.UDisks2"
  ],
  "modules": [
   {
    "name": "usbutils",
    "buildsystem": "meson",
    "config-opts": [
     "--datadir=/app/share/hwdata",
     "--sbindir=/app/bin"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/gregkh/usbutils.git",
      "tag": "v019",
      "commit": "d0c76b601b4b3ab9b2ab2647d604a8e3cce6d666",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "libusb-compat",
    "config-opts": [
     "--disable-static",
     "--disable-build-docs"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libusb/libusb-compat-0.1.git",
      "tag": "v0.1.9",
      "commit": "4831748a1439aec81e9cbb9984b1b0289c1c7051",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "python-packages",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"pyserial\" \"click\" \"six\" \"ecdsa\" \"setuptools\" \"adafruit-nrfutil\""
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/07/bc/587a445451b253b285629263eb51c2d8e9bcea4fc97826266d186f96f558/pyserial-3.5-py2.py3-none-any.whl",
      "sha256": "c4451db6ba391ca6ca299fb3ec7bae67a5c55dde170964c7a14ceefec02f2cf0",
      "x-checker-data": {
       "type": "pypi",
       "name": "pyserial",
       "packagetype": "bdist_wheel"
      }
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/fb/e2/79c688af8b210d232694e31e59da9f6ec747bae31c3f5946e4e9b98860d5/click-8.4.2-py3-none-any.whl",
      "sha256": "e6f9f66136c816745b9d65817da91d61d957fb16e02e4dcd0552553c5a197b76",
      "x-checker-data": {
       "type": "pypi",
       "name": "click",
       "packagetype": "bdist_wheel"
      }
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl",
      "sha256": "4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274",
      "x-checker-data": {
       "type": "pypi",
       "name": "six",
       "packagetype": "bdist_wheel"
      }
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/51/79/119091c98e2bf49e24ed9f3ae69f816d715d2904aefa6a2baa039a2ba0b0/ecdsa-0.19.2-py2.py3-none-any.whl",
      "sha256": "840f5dc5e375c68f36c1a7a5b9caad28f95daa65185c9253c0c08dd952bb7399",
      "x-checker-data": {
       "type": "pypi",
       "name": "ecdsa",
       "packagetype": "bdist_wheel"
      }
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/5d/40/e1e72872c6354b306daef1703549e8e83b4d43cfea356311bf722a043752/setuptools-83.0.0-py3-none-any.whl",
      "sha256": "29b23c360f22f414dc7336bb39178cc7bcbf6021ed2733cde173f09dba19abb3",
      "x-checker-data": {
       "type": "pypi",
       "name": "setuptools",
       "packagetype": "bdist_wheel"
      }
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/18/dc/4fed50ed2192fa5d5b3b2f43c50a629e56fa99198131de6c86a50164a66f/adafruit-nrfutil-0.5.3.post16.tar.gz",
      "sha256": "b72103dc8e50f92951f512fc2b6f2c621dac1614531ddf8c0be3b13d020e24ad",
      "x-checker-data": {
       "type": "pypi",
       "name": "adafruit-nrfutil",
       "packagetype": "sdist"
      }
     }
    ]
   },
   {
    "name": "git",
    "build-options": {
     "append-path": "/usr/lib/sdk/rust-stable/bin"
    },
    "make-args": [
     "NO_TCLTK=1",
     "INSTALL_SYMLINKS=1"
    ],
    "make-install-args": [
     "NO_TCLTK=1",
     "INSTALL_SYMLINKS=1"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.kernel.org/pub/software/scm/git/git-2.55.0.tar.gz",
      "sha256": "0842dc384a23ac33ba3e570c4f3a8ded85963ee4713b1cd21153c3db41813d1e",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 5350,
       "stable-only": true,
       "url-template": "https://www.kernel.org/pub/software/scm/git/git-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "krb5",
    "subdir": "src",
    "config-opts": [
     "--disable-static",
     "--disable-rpath"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://kerberos.org/dist/krb5/1.22/krb5-1.22.2.tar.gz",
      "sha256": "3243ffbc8ea4d4ac22ddc7dd2a1dc54c57874c40648b60ff97009763554eaf13",
      "x-checker-data": {
       "type": "html",
       "url": "https://kerberos.org/dist/",
       "version-pattern": "Kerberos V5 Release ([\\d\\.-]*) - current release",
       "url-template": "https://kerberos.org/dist/krb5/$major.$minor/krb5-$version.tar.gz"
      }
     }
    ],
    "cleanup": [
     "/sbin",
     "/bin",
     "/var",
     "/include",
     "/lib/pkgconfig",
     "/share/et",
     "/share/examples",
     "/share/man"
    ]
   },
   {
    "name": "arduino-ide",
    "buildsystem": "simple",
    "build-commands": [
     "mv ./arduino-ide /app/arduino-ide",
     "install -D arduino-ide.sh /app/bin/arduino-ide",
     "install -Dm644 cc.arduino.IDE2.svg /app/share/icons/hicolor/scalable/apps/cc.arduino.IDE2.svg",
     "install -Dm644 cc.arduino.IDE2.appdata.xml /app/share/appdata/cc.arduino.IDE2.appdata.xml",
     "install -Dm644 cc.arduino.IDE2.desktop /app/share/applications/cc.arduino.IDE2.desktop"
    ],
    "sources": [
     {
      "type": "file",
      "path": "arduino-ide.sh"
     },
     {
      "type": "file",
      "path": "cc.arduino.IDE2.desktop"
     },
     {
      "type": "file",
      "path": "cc.arduino.IDE2.appdata.xml"
     },
     {
      "type": "file",
      "path": "cc.arduino.IDE2.svg"
     },
     {
      "type": "archive",
      "dest": "arduino-ide",
      "strip-components": 1,
      "archive-type": "zip",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/arduino/arduino-ide/releases/download/2.3.10/arduino-ide_2.3.10_Linux_64bit.zip",
      "sha256": "cc8a0b01e763d4646b670ce70c1bc8c389a0fa14ab556dcc0749c03f475a7975",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/arduino/arduino-ide/releases/latest",
       "version-query": ".tag_name | sub(\"^jq-\"; \"\")",
       "url-query": ".assets[] | select(.name==\"arduino-ide_\" + $version + \"_Linux_64bit.zip\") | .browser_download_url"
      }
     }
    ]
   }
  ]
 }
}