{
 "app_id": "io.github.PlayTazUO.TUOLauncher",
 "source_url": "https://codeberg.org/Kieeps/TazUO-Flatpak/raw/branch/master/io.github.PlayTazUO.TUOLauncher.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--device=dri",
  "--socket=wayland",
  "--socket=x11",
  "--socket=pulseaudio",
  "--talk-name=org.freedesktop.portal.Desktop"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T18:40:23.290825+00:00",
 "manifest": {
  "app-id": "io.github.PlayTazUO.TUOLauncher",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.dotnet9"
  ],
  "command": "tuo-launcher",
  "finish-args": [
   "--share=network",
   "--device=dri",
   "--socket=wayland",
   "--socket=x11",
   "--socket=pulseaudio",
   "--talk-name=org.freedesktop.portal.Desktop"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/dotnet9/bin",
   "env": {
    "DOTNET_CLI_TELEMETRY_OPTOUT": "1",
    "DOTNET_NOLOGO": "1",
    "NUGET_XMLDOC_MODE": "skip",
    "NUGET_PACKAGES": "/run/build/nuget-packages",
    "DOTNET_NUGET_SIGNATURE_VERIFICATION": "false"
   }
  },
  "modules": [
   {
    "name": "tuo-launcher",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/PlayTazUO/TUO-Launcher.git",
      "tag": "v2.6.7",
      "commit": "44e3e2eab6df2c4ae46045fc0515714e4de97477",
      "dest": "TUO-Launcher-src"
     },
     {
      "type": "file",
      "path": "io.github.PlayTazUO.TUOLauncher.desktop"
     },
     {
      "type": "file",
      "path": "io.github.PlayTazUO.TUOLauncher.metainfo.xml"
     },
     {
      "type": "file",
      "path": "io.github.PlayTazUO.TUOLauncher.png"
     },
     "nuget-sources.json"
    ],
    "build-options": {
     "append-path": "/usr/lib/sdk/dotnet9/bin",
     "env": {
      "DOTNET_CLI_TELEMETRY_OPTOUT": "1",
      "DOTNET_NOLOGO": "1",
      "DOTNET_CLI_HOME": "/run/build/tuo-launcher/dotnet-home",
      "NUGET_PACKAGES": "/run/build/tuo-launcher/nuget-cache",
      "NUGET_HTTP_CACHE_PATH": "/run/build/tuo-launcher/nuget-http-cache",
      "NUGET_XMLDOC_MODE": "skip",
      "NUGET_ENABLE_EXPERIMENTAL_HTTP_RETRY": "true",
      "NUGET_DISABLE_RESTORE_HTTP_CACHE": "true"
     }
    },
    "build-commands": [
     "dotnet restore TUO-Launcher-src/TazUOLauncher/TazUOLauncher.csproj --source /run/build/tuo-launcher/nuget-sources --disable-parallel --ignore-failed-sources -p:NuGetAudit=false",
     "dotnet publish TUO-Launcher-src/TazUOLauncher/TazUOLauncher.csproj -c Release -o /app/lib/tuo-launcher -r linux-x64 --self-contained true --no-restore -p:NuGetAudit=false",
     "install -d /app/bin",
     "printf '%s\\n' \\ '#!/bin/sh' \\ 'SRC=\"/app/lib/tuo-launcher\"' \\ 'DATA=\"${XDG_DATA_HOME:-$HOME/.var/app/io.github.PlayTazUO.TUOLauncher/data}\"' \\ 'DST=\"$DATA/tuo-app\"' \\ '' \\ 'mkdir -p \"$DATA\"' \\ '' \\ '# Copy app to writable location on first run (or when app updates)' \\ 'if [ ! -x \"$DST/TazUOLauncher\" ] || [ \"$SRC/TazUOLauncher\" -nt \"$DST/TazUOLauncher\" ]; then' \\ '  rm -rf \"$DST.tmp\"' \\ '  mkdir -p \"$DST.tmp\"' \\ '  cp -a \"$SRC/.\" \"$DST.tmp/\"' \\ '  mv -f \"$DST.tmp\" \"$DST\"' \\ 'fi' \\ '' \\ 'cd \"$DST\"' \\ 'export LD_LIBRARY_PATH=\"$DST:${LD_LIBRARY_PATH:-}\"' \\ 'exec \"$DST/TazUOLauncher\" \"$@\"' \\ > /app/bin/tuo-launcher",
     "chmod 0755 /app/bin/tuo-launcher",
     "install -Dm644 io.github.PlayTazUO.TUOLauncher.desktop /app/share/applications/io.github.PlayTazUO.TUOLauncher.desktop",
     "install -Dm644 io.github.PlayTazUO.TUOLauncher.metainfo.xml /app/share/metainfo/io.github.PlayTazUO.TUOLauncher.metainfo.xml",
     "install -Dm644 io.github.PlayTazUO.TUOLauncher.png /app/share/icons/hicolor/256x256/apps/io.github.PlayTazUO.TUOLauncher.png",
     "install -Dm644 TUO-Launcher-src/LICENSE -t /app/share/licenses/io.github.PlayTazUO.TUOLauncher/"
    ]
   }
  ]
 }
}