{
 "app_id": "dev.ensoft.ecode",
 "source_url": "https://raw.githubusercontent.com/flathub/dev.ensoft.ecode/master/dev.ensoft.ecode.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=/var/tmp",
  "--filesystem=/tmp",
  "--filesystem=host",
  "--talk-name=org.freedesktop.Flatpak"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:09:33.910087+00:00",
 "manifest": {
  "app-id": "dev.ensoft.ecode",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "rename-desktop-file": "ecode.desktop",
  "rename-icon": "ecode",
  "command": "ecode",
  "finish-args": [
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--filesystem=host",
   "--filesystem=/tmp",
   "--filesystem=/var/tmp",
   "--socket=pulseaudio",
   "--talk-name=org.freedesktop.Flatpak"
  ],
  "modules": [
   {
    "name": "premake5",
    "buildsystem": "simple",
    "build-commands": [
     "unzip -q premake-5.0.0-beta7-src.zip -d premake-5.0.0-beta7-src",
     "cd premake-5.0.0-beta7-src && make -f Bootstrap.mak -j$(nproc) linux",
     "install -Dm755 -t \"${FLATPAK_DEST}/bin\" premake-5.0.0-beta7-src/bin/release/premake5"
    ],
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://github.com/premake/premake-core/releases/download/v5.0.0-beta7/premake-5.0.0-beta7-src.zip",
      "sha256": "d39874aed04e317a46bdd281b193fe58c70457cd07bbd50e1bdcb4729c3a4860",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 3707,
       "url-template": "https://github.com/premake/premake-core/releases/download/v$version/premake-$version-src.zip",
       "stable-only": false
      }
     }
    ]
   },
   {
    "name": "ecode",
    "buildsystem": "simple",
    "build-options": {
     "arch": {
      "x86_64": {
       "env": {
        "ARCH": "x86_64"
       }
      },
      "aarch64": {
       "env": {
        "ARCH": "arm64"
       }
      }
     }
    },
    "build-commands": [
     "premake5 gmake",
     "make -C make/linux -j$(nproc) config=\"release_${ARCH}\" verbose=true ecode",
     "cp -r bin /app/ecode",
     "install -Dm644 libs/linux/${ARCH}/libeepp.so \"${FLATPAK_DEST}/lib/libeepp.so\"",
     "install -Dm644 projects/linux/ecode/ecode.desktop \"${FLATPAK_DEST}/share/applications/ecode.desktop\"",
     "install -Dm644 bin/assets/icon/ecode.png \"${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/ecode.png\"",
     "ln -s \"${FLATPAK_DEST}/ecode/ecode\" \"${FLATPAK_DEST}/bin/ecode\"",
     "install -Dm644 dev.ensoft.ecode.metainfo.xml \"${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml\""
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/SpartanJ/eepp.git",
      "tag": "ecode-0.8.1",
      "commit": "1ccd301149c9f7bd074de1038173fde308ab9959",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 325538,
       "tag-template": "ecode-$version"
      }
     },
     {
      "type": "file",
      "path": "dev.ensoft.ecode.metainfo.xml"
     }
    ]
   }
  ]
 }
}