{
 "app_id": "com.ankama.Dofus",
 "source_url": "https://gitlab.com/flatpak-repo/com-ankama-Dofus-flatpak/-/raw/master/com.ankama.Dofus.yml",
 "runtime": "org.winepak.Platform/i386/3.0",
 "runtime_version": null,
 "sdk": "org.winepak.Sdk/i386/3.0",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=x11",
  "--socket=pulseaudio",
  "--env=PATH=/app/wine/bin:/app/bin:/usr/bin",
  "--device=all",
  "--allow=multiarch",
  "--env=GTK_PATH=/app/lib/gtk-2.0",
  "--env=G_FILENAME_ENCODING=UTF-8",
  "--env=DXVK_HOME=/app/dxvk",
  "--env=DXVK_STATE_CACHE=1",
  "--env=DXVK_STATE_CACHE_PATH=/var/data/cache_dxvk",
  "--env=DXVK_CONFIG_FILE=/app/dxvk/dxvk.conf",
  "--env=__GL_THREADED_OPTIMIZATIONS=0",
  "--env=__GL_SHADER_DISK_CACHE=1",
  "--env=__GL_SHADER_DISK_CACHE_PATH=/var/data/cache_nv",
  "--extra-data=dofus.tar.gz:a57149c0d0ad8c44a3be0d2ada381d8032e923e55d0225243aece626e4d45296:12821292:12821292:http://dl.ak.ankama.com/games/installers/dofus-x86.tar.gz"
 ],
 "module_count": 6,
 "fetched_at": "2026-09-18T08:10:13.913725+00:00",
 "manifest": {
  "app-id": "com.ankama.Dofus",
  "runtime": "org.winepak.Platform/i386/3.0",
  "sdk": "org.winepak.Sdk/i386/3.0",
  "tags": [
   "proprietary"
  ],
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=x11",
   "--socket=pulseaudio",
   "--env=PATH=/app/wine/bin:/app/bin:/usr/bin",
   "--device=all",
   "--allow=multiarch",
   "--env=GTK_PATH=/app/lib/gtk-2.0",
   "--env=G_FILENAME_ENCODING=UTF-8",
   "--env=DXVK_HOME=/app/dxvk",
   "--env=DXVK_STATE_CACHE=1",
   "--env=DXVK_STATE_CACHE_PATH=/var/data/cache_dxvk",
   "--env=DXVK_CONFIG_FILE=/app/dxvk/dxvk.conf",
   "--env=__GL_THREADED_OPTIMIZATIONS=0",
   "--env=__GL_SHADER_DISK_CACHE=1",
   "--env=__GL_SHADER_DISK_CACHE_PATH=/var/data/cache_nv",
   "--extra-data=dofus.tar.gz:a57149c0d0ad8c44a3be0d2ada381d8032e923e55d0225243aece626e4d45296:12821292:12821292:http://dl.ak.ankama.com/games/installers/dofus-x86.tar.gz"
  ],
  "command": "start",
  "build-options": {
   "cflags": "-O2 -g -pipe -fstack-protector-strong -fno-plt -frecord-gcc-switches -D_FORTIFY_SOURCE=2 -msse -msse2 -msse3 -mssse3 -mfpmath=sse -msahf -mprfchw -mcx16",
   "cxxflags": "-O2 -g -pipe -fstack-protector-strong -fno-plt -frecord-gcc-switches -D_FORTIFY_SOURCE=2 -msse -msse2 -msse3 -mssse3 -mfpmath=sse -msahf -mprfchw -mcx16",
   "ldflags": "-fstack-protector-strong -Wl,-z,relro,-z,now",
   "prefix": "/app",
   "libdir": "/app/lib"
  },
  "modules": [
   {
    "name": "nvidia",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm555 create_nvidia_cache_dir /app/bin/create_nvidia_cache_dir"
    ],
    "sources": [
     {
      "type": "script",
      "dest-filename": "create_nvidia_cache_dir",
      "commands": [
       null,
       "mkdir -p /var/data/cache_nv"
      ]
     }
    ]
   },
   {
    "name": "wine-win32",
    "config-opts": [
     "--disable-win64",
     "--disable-win16",
     "--disable-tests",
     "--with-x",
     "--with-ldap",
     "--with-netapi",
     "--without-cups",
     "--without-curses",
     "--without-capi",
     "--without-glu",
     "--without-gphoto",
     "--without-gsm",
     "--without-hal",
     "--without-opencl",
     "--without-pcap",
     "--without-udev",
     "--with-pthread"
    ],
    "cleanup": [
     "/app/wine/app/wine/share/man",
     "/app/wine/share/applications"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://dl.winehq.org/wine/source/4.x/wine-4.3.tar.xz",
      "sha256": "3db9b50f061087e7ec115a47e44d662a5b8a7fdb44264e637795508a185f0fb4"
     }
    ]
   },
   {
    "name": "libpng12",
    "sources": [
     {
      "type": "archive",
      "url": "https://sourceforge.net/projects/libpng/files/libpng12/1.2.59/libpng-1.2.59.tar.xz",
      "sha256": "b4635f15b8adccc8ad0934eea485ef59cc4cae24d0f0300a9a941e51974ffcc7"
     }
    ]
   },
   {
    "name": "dxvk",
    "buildsystem": "simple",
    "build-commands": [
     "install -d /app/dxvk",
     "cp -R ./* \"/app/dxvk\"",
     "install -Dm555 dxvk.conf /app/dxvk/dxvk.conf"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/doitsujin/dxvk/releases/download/v1.3.4/dxvk-1.3.4.tar.gz",
      "sha256": "4683e2ad4221b16572b0d939da5a05ab9a16b2b62c2f4e0c8bf3b2cdb27918ff"
     },
     {
      "type": "script",
      "dest-filename": "dxvk.conf",
      "commands": [
       null,
       "dxgi.nvapiHack = False"
      ]
     }
    ]
   },
   {
    "name": "dofus",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm555 user-install /app/bin",
     "install -Dm555 start /app/bin",
     "install -Dm555 script-clean-windows-ver /app/bin",
     "install -Dm555 script-set-windows-ver /app/bin",
     "install -Dm555 update-dxvk /app/bin"
    ],
    "sources": [
     {
      "type": "script",
      "dest-filename": "user-install",
      "commands": [
       "tar -xf /app/extra/dofus.tar.gz -C /var/data",
       "create_nvidia_cache_dir",
       "wineboot",
       "winetricks corefonts",
       "script-clean-windows-ver",
       "script-set-windows-ver",
       "update-dxvk",
       null,
       "ln -s share /var/data/Dofus/bin",
       "ln -s Dofus.sh /var/data/Dofus/share/Dofus",
       "chmod -R 777 /var/data/Dofus"
      ]
     },
     {
      "type": "script",
      "dest-filename": "script-clean-windows-ver",
      "commands": [
       "echo \"Clear Windows Version\"",
       "wine reg delete 'HKLM\\Software\\Microsoft\\Windows\\CurrentVersion' /v SubVersionNumber /f",
       "wine reg delete 'HKLM\\Software\\Microsoft\\Windows\\CurrentVersion' /v VersionNumber /f",
       "wine reg delete 'HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion' /v CSDVersion /f",
       "wine reg delete 'HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion' /v CurrentBuildNumber /f",
       "wine reg delete 'HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion' /v CurrentVersion /f",
       "wine reg delete 'HKLM\\System\\CurrentControlSet\\Control\\ProductOptions' /v ProductType /f",
       "wine reg delete 'HKLM\\System\\CurrentControlSet\\Control\\ServiceCurrent' /v OS /f",
       "wine reg delete 'HKLM\\System\\CurrentControlSet\\Control\\Windows' /v CSDVersion /f",
       "wine reg delete 'HKCU\\Software\\Wine' /v Version /f",
       "wine reg delete 'HKLM\\System\\CurrentControlSet\\Control\\ProductOptions' /v ProductType /f"
      ]
     },
     {
      "type": "script",
      "dest-filename": "script-set-windows-ver",
      "commands": [
       "echo \"Set Windows Version to 8.1 (9)\"",
       "wine reg add 'HKLM\\System\\CurrentControlSet\\Control\\ProductOptions' /v ProductType /d 'WinNT' /f",
       "wine reg add 'HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion' /v CSDVersion /d '' /f",
       "wine reg add 'HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion' /v CurrentBuildNumber /d '9600' /f",
       "wine reg add 'HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion' /v CurrentVersion /d '6.3' /f",
       "wine reg add 'HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Windows' /v CSDVersion /t REG_DWORD /d 00000000 /f"
      ]
     },
     {
      "type": "script",
      "dest-filename": "update-dxvk",
      "commands": [
       "echo \"reinstalling dxvk\"",
       "${DXVK_HOME}/setup_dxvk.sh uninstall",
       "${DXVK_HOME}/setup_dxvk.sh install"
      ]
     },
     {
      "type": "script",
      "dest-filename": "start",
      "commands": [
       "if [[ ! -f /var/data/Dofus/Dofus ]]; then",
       "  user-install",
       "fi",
       "export pwd=/var/data/Dofus",
       "/var/data/Dofus/Dofus \"$@\""
      ]
     }
    ]
   },
   {
    "name": "resources",
    "buildsystem": "simple",
    "build-commands": [
     "install -d /app/share/applications",
     "install -Dm555 com.ankama.Dofus.desktop /app/share/applications",
     "install -d /app/share/icons/hicolor/256x256/apps/",
     "install -Dm555 com.ankama.Dofus.png /app/share/icons/hicolor/256x256/apps/com.ankama.Dofus.png"
    ],
    "sources": [
     {
      "type": "file",
      "path": "com.ankama.Dofus.desktop"
     },
     {
      "type": "file",
      "path": "com.ankama.Dofus.png"
     }
    ]
   }
  ]
 }
}