{
 "app_id": "io.github.fastrizwaan.WineCharm",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.fastrizwaan.WineCharm/master/io.github.fastrizwaan.WineCharm.yaml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=all",
  "--filesystem=~/.local/share/applications",
  "--filesystem=~/.wine",
  "--filesystem=xdg-music",
  "--filesystem=~/.var/app/com.playonlinux.PlayOnLinux4/data/PlayOnLinux/wineprefix:ro",
  "--filesystem=xdg-videos",
  "--filesystem=xdg-pictures",
  "--filesystem=xdg-download",
  "--filesystem=~/.var/app/org.winehq.Wine/data/wine:ro",
  "--filesystem=xdg-documents",
  "--filesystem=~/.var/app/com.usebottles.bottles/data/bottles:ro",
  "--filesystem=xdg-desktop",
  "--filesystem=~/.var/app/org.phoenicis.playonlinux/.Phoenicis/containers/wineprefix:ro",
  "--filesystem=~/.var/app/io.github.fastrizwaan.WineZGUI/data/winezgui",
  "--allow=devel",
  "--allow=multiarch",
  "--system-talk-name=org.freedesktop.UDisks2"
 ],
 "module_count": 10,
 "fetched_at": "2026-09-17T16:11:00.302234+00:00",
 "manifest": {
  "id": "io.github.fastrizwaan.WineCharm",
  "sdk": "org.gnome.Sdk",
  "runtime": "org.gnome.Platform",
  "base": "org.winehq.Wine",
  "base-version": "stable-25.08",
  "runtime-version": "50",
  "command": "winecharm",
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=pulseaudio",
   "--socket=x11",
   "--system-talk-name=org.freedesktop.UDisks2",
   "--allow=devel",
   "--allow=multiarch",
   "--device=all",
   "--env=GST_PLUGIN_SYSTEM_PATH=/app/lib32/gstreamer-1.0:/app/lib/gstreamer-1.0:/usr/lib/i386-linux-gnu/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0",
   "--env=WINEDLLPATH=/app/dlls/lib32:/app/dlls/lib:/app/lib32/wine/wined3d:/app/lib/wine/wined3d",
   "--env=LD_LIBRARY_PATH=/app/lib:/app/lib32",
   "--filesystem=xdg-desktop",
   "--filesystem=xdg-documents",
   "--filesystem=xdg-pictures",
   "--filesystem=xdg-music",
   "--filesystem=xdg-videos",
   "--filesystem=xdg-download",
   "--filesystem=~/.local/share/applications",
   "--filesystem=~/.wine",
   "--filesystem=~/.var/app/org.winehq.Wine/data/wine:ro",
   "--filesystem=~/.var/app/com.usebottles.bottles/data/bottles:ro",
   "--filesystem=~/.var/app/com.playonlinux.PlayOnLinux4/data/PlayOnLinux/wineprefix:ro",
   "--filesystem=~/.var/app/org.phoenicis.playonlinux/.Phoenicis/containers/wineprefix:ro",
   "--filesystem=~/.var/app/io.github.fastrizwaan.WineZGUI/data/winezgui"
  ],
  "cleanup": [
   "*.a",
   "*.la",
   "/share/doc",
   "/share/man",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/cmake",
   "/share/pkgconfig",
   "/share/bash-completion"
  ],
  "inherit-extensions": [
   "org.freedesktop.Platform.GL32",
   "org.freedesktop.Platform.Compat.i386",
   "org.freedesktop.Platform.GL32",
   "org.freedesktop.Platform.VAAPI.Intel.i386",
   "org.winehq.Wine.gecko",
   "org.winehq.Wine.mono"
  ],
  "add-extensions": {
   "com.valvesoftware.Steam.Utility": {
    "subdirectories": true,
    "directory": "utils",
    "versions": "stable;beta;test;master",
    "add-ld-path": "lib",
    "merge-dirs": "share/vulkan/explicit_layer.d;share/vulkan/implicit_layer.d;",
    "no-autodownload": true,
    "autodelete": false
   }
  },
  "modules": [
   {
    "name": "compat",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/lib/i386-linux-gnu",
     "mkdir -p /app/lib/i386-linux-gnu/GL",
     "mkdir -p /app/lib/debug/lib/i386-linux-gnu",
     "mkdir -p /app/lib/dri/intel-vaapi-driver",
     "mkdir -p /app/lib/i386-linux-gnu/dri/intel-vaapi-driver",
     "mkdir -p /app/lib/udev/rules.d",
     "mkdir -p /app/extensions/Plugins",
     "mkdir -p /app/lib64",
     "mkdir -p /app/lib32",
     "mkdir -p /app/lib/ffmpeg",
     "mkdir -p /app/lib32/ffmpeg",
     "mkdir -p /app/utils"
    ]
   },
   {
    "name": "icoutils",
    "buildsystem": "autotools",
    "build-options": {
     "no-debuginfo": true
    },
    "sources": [
     {
      "type": "archive",
      "url": "http://savannah.nongnu.org/download/icoutils/icoutils-0.32.3.tar.bz2",
      "sha256": "17abe02d043a253b68b47e3af69c9fc755b895db68fdc8811786125df564c6e0"
     },
     {
      "type": "patch",
      "path": "0001-wrestool-Fix-get_resource_id_quoted-to-return-heap-a.patch"
     },
     {
      "type": "patch",
      "path": "0002-gcc15.patch"
     }
    ]
   },
   {
    "name": "perl",
    "no-autogen": true,
    "config-opts": [
     "-des",
     "-Duseshrplib"
    ],
    "build-options": {
     "cflags": "-fPIC",
     "ldflags": "-fpic"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://www.cpan.org/src/5.0/perl-5.40.2.tar.xz",
      "sha256": "0551c717458e703ef7972307ab19385edfa231198d88998df74e12226abf563b"
     },
     {
      "type": "script",
      "dest-filename": "configure",
      "commands": [
       "exec ./configure.gnu $@"
      ]
     }
    ],
    "post-install": [
     "find /app/lib/perl5 -type f -exec chmod u+w {} \\;"
    ]
   },
   {
    "name": "exiftool",
    "buildsystem": "simple",
    "build-commands": [
     "perl Makefile.PL",
     "make",
     "make install"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://sourceforge.net/projects/exiftool/files/Image-ExifTool-13.51.tar.gz",
      "sha256": "73b7f1035b20b00bfb6b15aff32799ec88523e48d5ed46c8952b7c54a3aae70f"
     }
    ]
   },
   {
    "name": "psutil",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --prefix=/app psutil*.whl"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/19/74/f59e7e0d392bc1070e9a70e2f9190d652487ac115bb16e2eff6b22ad1d24/psutil-6.0.0-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
      "sha256": "5fd9a97c8e94059b0ef54a7d4baf13b405011176c3b6ff257c247cae0d560ecd",
      "only-arches": [
       "x86_64"
      ],
      "x-checker-data": {
       "type": "pypi",
       "name": "psutil",
       "packagetype": "bdist_wheel"
      }
     }
    ]
   },
   {
    "name": "pyyaml",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --prefix=/app pyyaml*.whl"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/74/27/e5b8f34d02d9995b80abcef563ea1f8b56d20134d8f4e5e81733b1feceb2/pyyaml-6.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl",
      "sha256": "0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6",
      "only-arches": [
       "x86_64"
      ],
      "x-checker-data": {
       "type": "pypi",
       "name": "PyYAML",
       "packagetype": "bdist_wheel"
      }
     }
    ]
   },
   {
    "name": "vte",
    "buildsystem": "meson",
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.gnome.org/GNOME/vte.git/",
      "commit": "3f66edbf598129bafde3baa91ccfb345056418c3"
     }
    ]
   },
   {
    "name": "zenity",
    "buildsystem": "meson",
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/zenity/3.44/zenity-3.44.5.tar.xz",
      "sha256": "29ac447f4246b1da783a3c28ddc80b0ef7c80eccd5836ad9140abf89841d0eab"
     }
    ]
   },
   {
    "name": "polib",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --prefix=/app polib*.whl"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/6b/99/45bb1f9926efe370c6dbe324741c749658e44cb060124f28dad201202274/polib-1.2.0-py2.py3-none-any.whl",
      "sha256": "1c77ee1b81feb31df9bca258cbc58db1bbb32d10214b173882452c73af06d62d",
      "x-checker-data": {
       "type": "pypi",
       "name": "polib",
       "packagetype": "bdist_wheel"
      }
     }
    ]
   },
   {
    "name": "WineCharm",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --no-deps --no-build-isolation --ignore-installed --prefix=${FLATPAK_DEST} .",
     "mkdir -p /app/share/icons/hicolor",
     "cp -v /usr/share/icons/hicolor/index.theme /app/share/icons/hicolor/index.theme",
     "gtk-update-icon-cache -f  /app/share/icons/hicolor"
    ],
    "sources": [
     {
      "type": "git",
      "tag": 1.4,
      "commit": "0e577cc2761d75739974763f8a8bae52f6df07dc",
      "url": "https://github.com/fastrizwaan/WineCharm.git"
     }
    ]
   }
  ]
 }
}