{
 "app_id": "com.vscodium.codium-insiders",
 "source_url": "https://raw.githubusercontent.com/flathub/com.vscodium.codium-insiders/master/com.vscodium.codium-insiders.yaml",
 "runtime": "org.freedesktop.Sdk",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=ssh-auth",
  "--socket=wayland",
  "--device=all",
  "--filesystem=xdg-run/gnupg:ro",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=host",
  "--allow=devel",
  "--talk-name=org.freedesktop.Flatpak",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.freedesktop.secrets",
  "--system-talk-name=org.freedesktop.login1"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-20T11:45:40.966392+00:00",
 "manifest": {
  "id": "com.vscodium.codium-insiders",
  "sdk": "org.freedesktop.Sdk",
  "runtime": "org.freedesktop.Sdk",
  "runtime-version": "25.08",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "command": "com.vscodium.codium-insiders",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.golang"
  ],
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--socket=ssh-auth",
   "--share=network",
   "--device=all",
   "--filesystem=host",
   "--persist=.vscodium-insiders",
   "--allow=devel",
   "--talk-name=org.freedesktop.secrets",
   "--talk-name=org.freedesktop.Flatpak",
   "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons",
   "--filesystem=xdg-run/gnupg:ro",
   "--filesystem=xdg-config/kdeglobals:ro",
   "--talk-name=com.canonical.AppMenu.Registrar",
   "--system-talk-name=org.freedesktop.login1"
  ],
  "separate-locales": false,
  "add-extensions": {
   "com.visualstudio.code.tool": {
    "directory": "tools",
    "subdirectories": true,
    "add-ld-path": "lib",
    "no-autodownload": true
   }
  },
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/gtk-doc",
   "*.la"
  ],
  "modules": [
   {
    "name": "host-spawn",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/golang/bin",
     "env": {
      "GOBIN": "/app/bin",
      "GOFLAGS": "-modcacherw",
      "GOPATH": "/run/build/host-spawn"
     }
    },
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/1player/host-spawn",
      "commit": "d76c3a5196a8e0943f6a1c7c9f1acde4bd83c40c",
      "tag": "v1.6.2",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     },
     {
      "dest": "vendor",
      "path": "modules.txt",
      "type": "file"
     },
     {
      "type": "git",
      "dest": "vendor/github.com/godbus/dbus/v5",
      "url": "https://github.com/godbus/dbus.git",
      "commit": "e523abc905595cf17fb0001a7d77eaaddfaa216d",
      "tag": "v5.1.0"
     },
     {
      "type": "git",
      "dest": "vendor/github.com/pkg/term",
      "url": "https://github.com/pkg/term.git",
      "commit": "d02e49dd31404f3c3cf4b5469b28942194e0ca23",
      "tag": "v1.1.0"
     },
     {
      "type": "git",
      "dest": "vendor/golang.org/x/sys",
      "url": "https://go.googlesource.com/sys.git",
      "commit": "13b15b780d9013988b1fb0e79e30b2528a877638",
      "tag": "v0.15.0"
     }
    ],
    "build-commands": [
     "go install -mod=vendor -ldflags \"-X main.Version=$(git describe --tags)\""
    ]
   },
   {
    "name": "codium-insiders",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm644 code.svg /app/share/icons/hicolor/scalable/apps/$FLATPAK_ID.svg",
     "install -Dm644 $FLATPAK_ID.metainfo.xml -t /app/share/metainfo",
     "ar x codium.deb",
     "tar xf data.tar.xz",
     "patch --fuzz=3 usr/share/codium-insiders/resources/app/package.json -i package.json.patch",
     "mv usr/share/codium-insiders /app/share",
     "mv /app/share/codium-insiders/codium-insiders /app/share/codium-insiders/$FLATPAK_ID",
     "patch -u usr/share/applications/codium-insiders.desktop -i codium-insiders.desktop.patch",
     "patch -u usr/share/applications/codium-insiders-url-handler.desktop -i codium-insiders-url-handler.desktop.patch",
     "install -Dm644 usr/share/applications/codium-insiders.desktop /app/share/applications/$FLATPAK_ID.desktop",
     "install -Dm644 usr/share/applications/codium-insiders-url-handler.desktop /app/share/applications/$FLATPAK_ID-url-handler.desktop",
     "install -Dm644 usr/share/mime/packages/codium-insiders-workspace.xml /app/share/mime/packages/$FLATPAK_ID-workspace.xml",
     "desktop-file-edit --add-category=\"Utility\" /app/share/applications/$FLATPAK_ID.desktop",
     "rm -r codium.deb control.tar.* data.tar.xz debian-binary usr *.patch",
     "mkdir /app/tools"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://github.com/VSCodium/vscodium-insiders/releases/download/1.135.06030-insider/codium-insiders_1.135.06030_amd64.deb",
      "sha256": "7bd7ef6451e07458f74dde7fcc89fedea86cc1522866e32de61d747c939e5e11",
      "dest-filename": "codium.deb",
      "only-arches": [
       "x86_64"
      ],
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/VSCodium/vscodium-insiders/releases/latest",
       "tag-query": ".tag_name",
       "version-query": ".tag_name",
       "timestamp-query": ".published_at",
       "url-query": ".assets[] | select(.name|test(\"codium-insiders_.+_amd64.deb$\")).browser_download_url"
      }
     },
     {
      "type": "file",
      "url": "https://github.com/VSCodium/vscodium-insiders/releases/download/1.135.06030-insider/codium-insiders_1.135.06030_arm64.deb",
      "sha256": "69dce327f00bdcb1f917e6488b871da2caf62437d24e2c5e3c3b97373f8e60d0",
      "dest-filename": "codium.deb",
      "only-arches": [
       "aarch64"
      ],
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/VSCodium/vscodium-insiders/releases/latest",
       "tag-query": ".tag_name",
       "version-query": ".tag_name",
       "timestamp-query": ".published_at",
       "url-query": ".assets[] | select(.name|test(\"codium-insiders_.+_arm64.deb$\")).browser_download_url"
      }
     },
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/VSCodium/vscodium/refs/heads/insider/src/insider/resources/linux/code.svg",
      "sha256": "ed7c05df676522c7a1922bcff2185bedb9364801b78072b325014b0a26865c53"
     },
     {
      "type": "file",
      "path": "com.vscodium.codium-insiders.metainfo.xml"
     },
     {
      "type": "file",
      "path": "patches/package.json.patch"
     },
     {
      "type": "file",
      "path": "patches/codium-insiders.desktop.patch"
     },
     {
      "type": "file",
      "path": "patches/codium-insiders-url-handler.desktop.patch"
     }
    ]
   },
   {
    "name": "ide-flatpak-wrapper",
    "buildsystem": "meson",
    "config-opts": [
     "-Deditor_binary=/app/share/codium-insiders/com.vscodium.codium-insiders",
     "-Deditor_args=[ '/app/share/codium-insiders/resources/app/out/cli.js', '--extensions-dir', '$XDG_DATA_HOME/codium-insiders/extensions' ]",
     "-Dprogram_name=com.vscodium.codium-insiders",
     "-Deditor_title=VSCodium - Insiders",
     "-Dzypak=enabled",
     "-Dzypak_args=[ 'host', '-' ]",
     "-Denvs=[ \"ELECTRON_RUN_AS_NODE=1\" ]",
     "-Denvs_inner=[ \"ZYPAK_SPAWN_LATEST_ON_REEXEC=0\", ]",
     "-Dfirst_run_template=README.md",
     "-Dsdk_update_template=sdk_update.md",
     "-Dflagfile_prefix=flatpak-vscodium-insiders"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/flathub-infra/ide-flatpak-wrapper.git",
      "commit": "14e85b05d804c9e556ddbea9173bdb4bc2c3bd71"
     },
     {
      "type": "file",
      "path": "README.md"
     },
     {
      "type": "file",
      "path": "sdk_update.md"
     }
    ]
   }
  ]
 }
}