{
 "app_id": "org.jamovi.jamovi",
 "source_url": "https://raw.githubusercontent.com/flathub/org.jamovi.jamovi/master/org.jamovi.jamovi.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=x11",
  "--device=dri",
  "--filesystem=home",
  "--talk-name=org.freedesktop.Notifications"
 ],
 "module_count": 28,
 "fetched_at": "2026-09-18T12:25:05.028682+00:00",
 "manifest": {
  "app-id": "org.jamovi.jamovi",
  "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.node22"
  ],
  "command": "jamovi",
  "separate-locales": false,
  "rename-desktop-file": "jamovi.desktop",
  "rename-icon": "jamovi",
  "finish-args": [
   "--share=network",
   "--share=ipc",
   "--socket=x11",
   "--device=dri",
   "--filesystem=home",
   "--env=TMPDIR=/var/tmp",
   "--talk-name=org.freedesktop.Notifications"
  ],
  "build-options": {
   "cflags": "-O2 -g",
   "cxxflags": "-O2 -g",
   "env": {
    "R_HOME": "/app/lib/R"
   },
   "append-path": "/usr/lib/sdk/node22/bin"
  },
  "cleanup": [
   "/include",
   "/bin/chardetect",
   "/bin/cygdb",
   "/bin/cython",
   "/bin/cythonize",
   "/bin/nanocat",
   "/bin/f2py*",
   "/bin/pip*",
   "/bin/python2*",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/lib/*.a",
   "/lib/*.la",
   "/lib/python2*"
  ],
  "x-jamovi-source": {
   "type": "git",
   "url": "https://github.com/jamovi/jamovi.git",
   "commit": "6400e4d9d000985adf97bdf4eed2d66e941fd9c9"
  },
  "modules": [
   {
    "name": "boost",
    "buildsystem": "simple",
    "build-commands": [
     "./bootstrap.sh --with-libraries=filesystem,system",
     "./b2 -j4 install --prefix=${FLATPAK_DEST}"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://archives.boost.io/release/1.90.0/source/boost_1_90_0.tar.bz2",
      "sha512": "1c81b60f63367d7249f277f0a569c181926dcf5a725e30433dd336205f1782880489dd00df6a1a74fd107765d3ca2cd49f806788cabb7d5700a8a55927a9a199"
     }
    ],
    "cleanup": [
     "/include"
    ]
   },
   {
    "name": "ProtoBuf",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/protocolbuffers/protobuf/archive/refs/tags/v3.21.12.zip",
      "sha512": "7f1c9a4297a4e47705d64932483f31ed25da928d24e351d94899038f852015d4a16c88c2b962ac4a0c62e6a3f6689f87fb4cef7165d327aae5381a7b975bdf2e"
     }
    ],
    "cleanup": [
     "/bin/protoc"
    ]
   },
   {
    "name": "nanomsg",
    "buildsystem": "cmake",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/nanomsg/nanomsg/archive/1.2.tar.gz",
      "sha512": "377b3a0b4be6d6decd2711ff84ac1855ae0a298e7557dbe4b7d881c2a76f4e521671b47987b924c434afdad7ff1dfebb50982c8c0afca9b44682c898510d4c92"
     }
    ]
   },
   {
    "name": "xslt-config",
    "buildsystem": "simple",
    "build-commands": [
     "mv xslt-config /app/bin"
    ],
    "sources": [
     {
      "type": "script",
      "dest-filename": "xslt-config",
      "commands": [
       "#!/bin/bash",
       "pkg-config libxslt $*"
      ]
     }
    ]
   },
   {
    "name": "R",
    "config-opts": [
     "--enable-R-shlib",
     "--libdir=/app/lib",
     "--with-x=no"
    ],
    "build-options": {},
    "sources": [
     {
      "type": "archive",
      "url": "https://cran.r-project.org/src/base/R-4/R-4.6.0.tar.gz",
      "sha512": "109d0141389583cc27e3e810e3cc029709e695cc411932564d9e88898a750ff8c1fae00abb3ab9714d85e591960aca81cd3da9cdfa07a7d810cd0a7be03ddeb1"
     }
    ],
    "cleanup": [
     "/app/lib/R/doc"
    ]
   },
   {
    "name": "nlopt",
    "build-options": {
     "cflags": "-fPIC"
    },
    "sources": [
     {
      "type": "archive",
      "url": "http://ab-initio.mit.edu/nlopt/nlopt-2.4.2.tar.gz",
      "sha256": "8099633de9d71cbc06cd435da993eb424bbcdbded8f803cdaa9fb8c6e09c8e89"
     }
    ]
   },
   {
    "name": "gsl",
    "config-opts": [
     "includedir=/app/lib/R/include"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.gnu.org/gnu/gsl/gsl-2.6.tar.gz",
      "sha512": "0be8240715f0b86aba2c63d9f12da4dba4719d4e350e9308d279e0dd3b2f0519ea26fd2e38a17f3e8cf43aacbaa2455207a7ca0d6c305f3b8725e8ece2250a74"
     }
    ]
   },
   {
    "name": "units",
    "buildsystem": "simple",
    "build-commands": [
     "./configure --includedir=/app/share/include --libdir=/app/lib",
     "make",
     "make install"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.unidata.ucar.edu/udunits/2.2.28/udunits-2.2.28.tar.gz",
      "sha512": "86146d489e1d472723e059fb15a5dd697a67568ffb5cdba17d191eb304c018bffffea708a73cce50a6c87ad33b387e5ee6653377ae0ebe9986117dfd41e9a5a1"
     }
    ]
   },
   {
    "name": "geos",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DBUILD_TESTING=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.osgeo.org/geos/geos-3.14.1.tar.bz2",
      "sha512": "a5a27c34249a6b7fa8bc5d6d557f278bcc3a81ca188f9f543bee7afb6e47d9f8a545e676c5884c0651530bccd24eb929feaaf95cda8e73b033296073e6626f0d"
     }
    ]
   },
   {
    "name": "PROJ",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DBUILD_TESTING=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.osgeo.org/proj/proj-9.8.1.tar.gz",
      "sha512": "f8d02a605ce409b63f2809ecceb941b6f7eaa9bd5197040c13a1fa930e5b8fc3e996110ad71a4c7c56fc5ba5251a2d9cade0b51bbbc12048276915b9f46ba93b"
     }
    ]
   },
   {
    "name": "gdal",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DGDAL_USE_GEOS=ON"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.osgeo.org/gdal/3.13.0/gdal-3.13.0.tar.gz",
      "sha512": "40a3d35c051dced32f83052a3210e049cfff686c155fc836eec80bff82f91055a2ee7a83f613426bea11100d8469bfcdb8a3b05a992156b32fca1854ab849734"
     }
    ]
   },
   {
    "name": "xml2-config",
    "buildsystem": "simple",
    "build-commands": [
     "mv xml2-config /app/bin"
    ],
    "sources": [
     {
      "type": "script",
      "dest-filename": "xml2-config",
      "commands": [
       "#!/bin/bash",
       "if [ \"$1\" == \"--version\" ]",
       "then",
       "    pkg-config --modversion libxml-2.0",
       "else",
       "    pkg-config $* libxml-2.0",
       "fi"
      ]
     }
    ]
   },
   {
    "name": "libpng-config",
    "buildsystem": "simple",
    "build-commands": [
     "mv libpng-config /app/bin"
    ],
    "sources": [
     {
      "type": "script",
      "dest-filename": "libpng-config",
      "commands": [
       "#!/bin/bash",
       "if [ \"$1\" == \"--static\" ] && [ \"$2\" == \"--ldflags\" ];",
       "then",
       "    pkg-config --static --libs libpng",
       "else",
       "    pkg-config --cflags libpng",
       "fi"
      ]
     }
    ]
   },
   {
    "name": "jmvcore",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "USE_BUNDLED_LIBUV": "1"
     }
    },
    "build-commands": [
     "/app/bin/R CMD INSTALL *.Rpkg  --no-docs --no-html --no-help --no-demo --no-multiarch",
     "/app/bin/R CMD INSTALL jmvcore --no-docs --no-html --no-help --no-demo --no-multiarch"
    ],
    "sources": [
     "base-deps-sources.json",
     {
      "type": "git",
      "url": "https://github.com/jamovi/jamovi.git",
      "commit": "6400e4d9d000985adf97bdf4eed2d66e941fd9c9"
     }
    ]
   },
   {
    "name": "electron-x86_64",
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/bin/resources",
     "cp *.so  /app/bin",
     "cp *.bin /app/bin",
     "cp *.dat /app/bin",
     "cp *.pak /app/bin",
     "cp electron /app/bin/",
     "cp -r resources/ /app/bin/",
     "cp -r locales/   /app/bin/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/electron/electron/releases/download/v25.3.2/electron-v25.3.2-linux-x64.zip",
      "sha512": "6a1af90665d67d5d7f94c491dc8fb68213a0d276127c54a130172d5009160ef1005258434dde62bc888189ac7ef57905e29d90842f38badf8ad423b09c37cece",
      "strip-components": 0
     }
    ]
   },
   {
    "name": "electron-arm64",
    "only-arches": [
     "aarch64"
    ],
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p ${FLATPAK_DEST}/bin/resources",
     "cp *.so  ${FLATPAK_DEST}/bin",
     "cp *.bin ${FLATPAK_DEST}/bin",
     "cp *.dat ${FLATPAK_DEST}/bin",
     "cp *.pak ${FLATPAK_DEST}/bin",
     "cp electron ${FLATPAK_DEST}/bin/",
     "cp -r resources/ ${FLATPAK_DEST}/bin/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/electron/electron/releases/download/v25.3.2/electron-v25.3.2-linux-arm64.zip",
      "sha512": "24e06513df2357266ff3f169291eb12d2265f2cbc2c8509833389aea3e62d0f60da6295f3233bc5423e4fdcbc807e47ecabeadd50f332909b92b36593e18c72f",
      "strip-components": 0
     }
    ]
   },
   {
    "name": "zypak-chrome-sandbox",
    "buildsystem": "simple",
    "build-commands": [
     "touch    ${FLATPAK_DEST}/bin/chrome-sandbox",
     "chmod +x ${FLATPAK_DEST}/bin/chrome-sandbox"
    ],
    "sources": []
   },
   {
    "name": "jamovi-electron-app",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "XDG_CACHE_HOME": "../flatpak-node/cache",
      "npm_config_cache": "../flatpak-node/npm-cache",
      "npm_config_offline": "true"
     }
    },
    "build-commands": [
     "cp jamovi /app/bin/jamovi",
     "cd electron && npm install --offline",
     "cd electron && npm run deploy",
     "mv electron/default_app.asar /app/bin/resources"
    ],
    "sources": [
     "electron-app-deps-sources.json",
     {
      "type": "git",
      "url": "https://github.com/jamovi/jamovi.git",
      "commit": "6400e4d9d000985adf97bdf4eed2d66e941fd9c9"
     },
     {
      "type": "script",
      "dest-filename": "jamovi",
      "commands": [
       "#!/bin/bash",
       "SCRIPT=`realpath $0`",
       "HERE=`dirname $SCRIPT`",
       "if [[ \"$1\" == \"--version\" ]]; then",
       "    cat $HERE/../lib/jamovi/version",
       "elif [[ \"$1\" == \"--r-version\" ]]; then",
       "    echo `/app/bin/R --version | sed -n 's|^R version \\([0-9.]\\+\\).*$|\\1|p'`-`/app/bin/R --version | sed -n 's|^Platform: \\([^-]\\+\\).*$|\\1|p'` | sed 's|x86_64|x64|g' | sed 's|aarch64|arm64|g'",
       "elif [[ \"$1\" == \"-R\" ]]; then",
       "    shift",
       "    DOWNLOAD_STATIC_LIBV8=1 UDUNITS2_INCLUDE=/app/share/include UDUNITS2_LIBS=/app/lib USE_BUNDLED_LIBUV=1 /app/bin/R \"$@\"",
       "else",
       "    /app/bin/zypak-wrapper /app/bin/electron \"$@\"",
       "fi"
      ]
     }
    ]
   },
   {
    "name": "jmv",
    "buildsystem": "simple",
    "build-commands": [
     "cd jamovi-compiler && npm install --offline",
     "cp -rT libv8-static/include/ /app/include/",
     "cp libv8-static/lib/libv8_monolith.a /app/lib/",
     "mkdir -p /app/lib/jamovi/modules",
     "mkdir -p   jmv/build/R`/app/bin/jamovi --r-version`-linux",
     "/app/bin/R CMD INSTALL *.jmv.Rpkg --library=jmv/build/R`/app/bin/jamovi --r-version`-linux --no-docs --no-html --no-data --no-help --no-demo --no-multiarch",
     "./jamovi-compiler.sh --i18n jmv --update",
     "./jamovi-compiler.sh --install jmv   --to /app/lib/jamovi/modules --home /app --patch-version --skip-remotes --assume-app-version `cat version`",
     "./jamovi-compiler.sh --install plots --to /app/lib/jamovi/modules --home /app --patch-version --skip-remotes --assume-app-version `cat version` --rlibs /app/lib/jamovi/modules/jmv/R"
    ],
    "build-options": {
     "env": {
      "XDG_CACHE_HOME": "../flatpak-node/cache",
      "npm_config_cache": "../flatpak-node/npm-cache",
      "npm_config_offline": "true",
      "R_LIBS": "/app/lib/jamovi/modules/jmv/R",
      "V8_PKG_CFLAGS": "-I/app/include",
      "V8_PKG_LIBS": "-L/app/lib -lv8_monolith"
     }
    },
    "sources": [
     "jmc-deps-sources.json",
     "jmv-deps-sources.json",
     {
      "type": "git",
      "url": "https://github.com/jamovi/jamovi.git",
      "commit": "6400e4d9d000985adf97bdf4eed2d66e941fd9c9"
     },
     {
      "type": "script",
      "dest-filename": "jamovi-compiler.sh",
      "commands": [
       "node jamovi-compiler/index.js --rhome $R_HOME $*"
      ]
     },
     {
      "type": "archive",
      "url": "https://github.com/jeroen/build-v8-static/releases/download/12.4.254.21/v8-rocky-8-amd64.tar.gz",
      "sha512": "cd7a2700f06d2d262f22badaa1a4142e710d575e5a8131d518b814a94783c9c3bcd524a6c93336a12a0b6c7d254bbced255217182ed11748f6cf6bc21158ec5c",
      "dest": "libv8-static",
      "strip-components": 1,
      "only-arches": [
       "x86_64"
      ]
     },
     {
      "type": "archive",
      "url": "https://github.com/jeroen/build-v8-static/releases/download/12.4.254.21/v8-debian-11-arm64.tar.gz",
      "sha512": "0d38cc1073c8277394556208e5cfa15560837ea596fbf450a7ad47576be32c9eaf0611e9ea13e41d50e83d2cf1b7cad28f87883003773f78ef4aa39ef86dc4e3",
      "dest": "libv8-static",
      "strip-components": 1,
      "only-arches": [
       "aarch64"
      ]
     }
    ]
   },
   "python-deps.json",
   {
    "name": "python3-scipy-x86_64",
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "simple",
    "build-commands": [
     "pip3 debug --verbose",
     "python3 -m pip install numpy-2.5.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl scipy-1.18.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl --prefix=${FLATPAK_DEST}"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/7b/44/59a1eb68e773c4098d107ef34a0dbdeca501d72ffcfbff9a7707343921ce/numpy-2.5.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
      "sha256": "29b86ff8a6cc556b47ec6b64b194815cc80e6bf5eedcc6cddfd65318cb0b4eee"
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/41/48/6450ed9243315322bbc19ac57b9b70d66a20bf1d38d124c96bc4bf6af9ea/scipy-1.18.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
      "sha256": "fdaf5ea890a6183d0565f51a61799d67081bd5b1cf03c5f4b3fd3732108625c9"
     }
    ]
   },
   {
    "name": "python3-scipy-aarch64",
    "only-arches": [
     "aarch64"
    ],
    "buildsystem": "simple",
    "build-commands": [
     "pip3 debug --verbose",
     "python3 -m pip install numpy-2.5.2-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl scipy-1.18.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl --prefix=${FLATPAK_DEST}"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/29/f1/2a64a307d92c5d98f5255a4014eb43bb6103ee477087b61ecae44a3aa9b9/numpy-2.5.2-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl",
      "sha256": "0aadf13b60048d501e05fa699efaf7734e2494f3498a4c2a5521d822640324f3"
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/e6/5f/4634e9d35c68496e4e34cb6946eafab044458e6cedab42b40b6588e475b6/scipy-1.18.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl",
      "sha256": "d416b16cccfd70fbf62400e84d0bb2f4e6af519a45557f1692c749b37f14b315"
     }
    ]
   },
   {
    "name": "jamovi-server",
    "buildsystem": "simple",
    "build-commands": [
     "cd server && python3 setup.py build_ext",
     "cd server && python3 setup.py install --single-version-externally-managed --root=/ --prefix=${FLATPAK_DEST}",
     "cd readstat && python3 setup.py build_ext",
     "cd readstat && python3 setup.py install --single-version-externally-managed --root=/ --prefix=${FLATPAK_DEST}",
     "mkdir -p /app/lib/jamovi",
     "cp version /app/lib/jamovi/version"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/jamovi/jamovi.git",
      "commit": "6400e4d9d000985adf97bdf4eed2d66e941fd9c9"
     }
    ]
   },
   {
    "name": "jamovi-client",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "XDG_CACHE_HOME": "../flatpak-node/cache",
      "npm_config_cache": "../flatpak-node/npm-cache",
      "npm_config_offline": "true"
     }
    },
    "build-commands": [
     "cd client && npm install --offline",
     "cd client && npm run build",
     "cp -r client/dist     /app/lib/jamovi/client"
    ],
    "sources": [
     "client-deps-sources.json",
     {
      "type": "git",
      "url": "https://github.com/jamovi/jamovi.git",
      "commit": "6400e4d9d000985adf97bdf4eed2d66e941fd9c9"
     }
    ]
   },
   {
    "name": "env.conf",
    "buildsystem": "simple",
    "build-commands": [
     "sed -E -e \"s|R_HOME=.*|R_HOME=$R_HOME|g\" -e \"s|R_LIBS=.*|R_LIBS=$R_HOME/library|g\" -e \"s|JAMOVI_R_VERSION=.*|JAMOVI_R_VERSION=`jamovi --r-version`|g\" env.conf > /app/bin/env.conf"
    ],
    "sources": [
     {
      "type": "file",
      "path": "env.conf"
     }
    ]
   },
   {
    "name": "jamovi-engine",
    "buildsystem": "simple",
    "build-commands": [
     "./configure --rhome=/app/lib/R --base-module-path=/app/lib/R/library --rpath=/app/lib/R/library/RInside/lib --rpath=/app/lib/R/lib",
     "make",
     "BINDIR='${FLATPAK_DEST}/bin' make install"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/jamovi/jamovi.git",
      "commit": "6400e4d9d000985adf97bdf4eed2d66e941fd9c9"
     }
    ]
   },
   {
    "name": "jamovi-i18n",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "XDG_CACHE_HOME": "../flatpak-node/cache",
      "npm_config_cache": "../flatpak-node/npm-cache",
      "npm_config_offline": "true"
     }
    },
    "build-commands": [
     "mkdir -p /app/lib/jamovi/i18n/json",
     "cd i18n && npm install --offline",
     "cd i18n && node index.js --build src --dest /app/lib/jamovi/i18n/json"
    ],
    "sources": [
     "i18n-deps-sources.json",
     {
      "type": "git",
      "url": "https://github.com/jamovi/jamovi.git",
      "commit": "6400e4d9d000985adf97bdf4eed2d66e941fd9c9"
     }
    ]
   },
   {
    "name": "jamovi-meta",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/share/icons/hicolor/scalable/apps",
     "cp platform/app-icon.svg /app/share/icons/hicolor/scalable/apps/jamovi.svg",
     "mkdir -p /app/share/applications",
     "cp platform/jamovi.desktop /app/share/applications/",
     "mkdir -p /app/share/appdata",
     "cp org.jamovi.jamovi.appdata.xml /app/share/appdata/",
     "mkdir -p /app/share/mime/packages",
     "cp platform/jamovi-dataset.xml /app/share/mime/packages/org.jamovi.jamovi.xml"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/jamovi/jamovi.git",
      "commit": "6400e4d9d000985adf97bdf4eed2d66e941fd9c9"
     },
     {
      "type": "file",
      "path": "org.jamovi.jamovi.appdata.xml"
     }
    ]
   }
  ]
 }
}