{
 "app_id": "io.beekeeperstudio.Studio",
 "source_url": "https://raw.githubusercontent.com/flathub/io.beekeeperstudio.Studio/master/io.beekeeperstudio.Studio.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--socket=ssh-auth",
  "--device=dri",
  "--talk-name=org.freedesktop.Notifications"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:10:10.092453+00:00",
 "manifest": {
  "app-id": "io.beekeeperstudio.Studio",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "command": "beekeeper-studio",
  "rename-icon": "beekeeper-studio",
  "finish-args": [
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=ssh-auth",
   "--talk-name=org.freedesktop.Notifications"
  ],
  "modules": [
   {
    "name": "beekeeper-studio",
    "buildsystem": "simple",
    "build-commands": [
     "chmod +x Beekeeper-Studio.AppImage",
     "./Beekeeper-Studio.AppImage --appimage-extract",
     "rm Beekeeper-Studio.AppImage",
     "desktop-file-edit --set-icon ${FLATPAK_ID} --set-key Exec --set-value 'beekeeper-studio %u' squashfs-root/beekeeper-studio.desktop",
     "install -Dm644 squashfs-root/beekeeper-studio.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm755 beekeeper-studio.sh ${FLATPAK_DEST}/bin/beekeeper-studio",
     "install -Dm644 io.beekeeperstudio.Studio.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "install -Dm644 squashfs-root/usr/share/mime/beekeeper-studio.xml ${FLATPAK_DEST}/share/mime/packages/${FLATPAK_ID}.xml",
     "rm squashfs-root/usr/share/mime/beekeeper-studio.xml",
     "mkdir -p ${FLATPAK_DEST}/share/icons/hicolor",
     "cp -r squashfs-root/usr/share/icons/hicolor/* ${FLATPAK_DEST}/share/icons/hicolor",
     "rm -rf ${FLATPAK_DEST}/share/icons/hicolor/1024x1024",
     "rm -rf squashfs-root/resources/public/icons/win squashfs-root/resources/public/icons/mac",
     "mv squashfs-root ${FLATPAK_DEST}/beekeeper-studio",
     "for lang in ${FLATPAK_DEST}/beekeeper-studio/locales/*.pak\ndo\n  locale=\"$(basename -s .pak $lang)\"\n  install -Dm644 -t \"${FLATPAK_DEST}/share/runtime/locale/${locale%%-*}/\" \"$lang\"\n  ln -sf \"${FLATPAK_DEST}/share/runtime/locale/${locale%%-*}/$(basename $lang)\" \"${FLATPAK_DEST}/beekeeper-studio/locales/$(basename $lang)\"\ndone\n"
    ],
    "sources": [
     {
      "type": "file",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/beekeeper-studio/beekeeper-studio/releases/download/v5.8.1/Beekeeper-Studio-5.8.1.AppImage",
      "sha512": "4d247acd377ba183f2e690d080153214df1cbd475d122d54aa8ab34e275150b88d6c0502a4c9526793daf4696fe7dad8496e36fd5a245fd8282edff659643a03",
      "dest-filename": "Beekeeper-Studio.AppImage",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/beekeeper-studio/beekeeper-studio/releases/latest",
       "version-query": ".tag_name | sub(\"v\"; \"\")",
       "url-query": ".assets[] | select(.name == \"Beekeeper-Studio-\" + $version + \".AppImage\") | .browser_download_url"
      }
     },
     {
      "type": "file",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/beekeeper-studio/beekeeper-studio/releases/download/v5.8.1/Beekeeper-Studio-5.8.1-arm64.AppImage",
      "sha512": "c89ee5f432428cb8bba4642f0e6daca6ca4ac25a8686d6dc1a752307cc8e336740daa062489ec8ff6db2e4ec32815362c7c3e68458efaf5f1734e6f122645392",
      "dest-filename": "Beekeeper-Studio.AppImage",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/beekeeper-studio/beekeeper-studio/releases/latest",
       "version-query": ".tag_name | sub(\"v\"; \"\")",
       "url-query": ".assets[] | select(.name == \"Beekeeper-Studio-\" + $version + \"-arm64.AppImage\") | .browser_download_url"
      }
     },
     {
      "type": "file",
      "path": "beekeeper-studio.sh"
     },
     {
      "type": "file",
      "path": "io.beekeeperstudio.Studio.metainfo.xml"
     }
    ]
   }
  ]
 }
}