{
 "app_id": "org.omegat.OmegaT",
 "source_url": "https://raw.githubusercontent.com/flathub/org.omegat.OmegaT/master/org.omegat.OmegaT.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--filesystem=xdg-documents"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T16:16:10.199464+00:00",
 "manifest": {
  "app-id": "org.omegat.OmegaT",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.openjdk"
  ],
  "command": "run.sh",
  "finish-args": [
   "--filesystem=xdg-documents",
   "--socket=x11",
   "--share=ipc",
   "--share=network"
  ],
  "modules": [
   {
    "name": "openjdk",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/openjdk/install.sh"
    ]
   },
   {
    "name": "omegat-nojre",
    "sources": [
     {
      "type": "archive",
      "url": "https://ixpeering.dl.sourceforge.net/project/omegat/OmegaT%20-%20Standard/OmegaT%206.0.1/OmegaT_6.0.1_Without_JRE.zip",
      "sha256": "463e746f34fc93bf8659bd29fe66becf2f8fce417bb41ea25781785150089898",
      "dest": "omegatpkg"
     }
    ],
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/share/omegat",
     "mv omegatpkg/* /app/share/omegat/"
    ]
   },
   {
    "name": "launcher",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "script",
      "dest-filename": "run.sh",
      "commands": [
       "export _JAVA_OPTIONS=\"-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel ${_JAVA_OPTIONS}\"",
       "export PATH=$PATH:/app/jre/bin/",
       "exec /app/share/omegat/OmegaT --config-dir=\"$XDG_CONFIG_HOME\" ${OMEGAT_OPTIONS} $@"
      ]
     }
    ],
    "build-commands": [
     "install -Dm755 run.sh /app/bin/run.sh"
    ]
   },
   {
    "name": "desktop",
    "sources": [
     {
      "type": "file",
      "path": "org.omegat.OmegaT.desktop"
     },
     {
      "type": "file",
      "path": "org.omegat.OmegaT.svg"
     },
     {
      "type": "file",
      "path": "org.omegat.OmegaT.appdata.xml"
     }
    ],
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm644 org.omegat.OmegaT.svg /app/share/icons/hicolor/scalable/apps/org.omegat.OmegaT.svg",
     "install -Dm644 org.omegat.OmegaT.desktop /app/share/applications/org.omegat.OmegaT.desktop",
     "install -Dm644 org.omegat.OmegaT.appdata.xml /app/share/appdata/org.omegat.OmegaT.appdata.xml"
    ]
   }
  ]
 }
}