{
 "app_id": "com.spacestation14.Launcher",
 "source_url": "https://raw.githubusercontent.com/flathub/com.spacestation14.Launcher/master/com.spacestation14.Launcher.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=dri",
  "--device=all",
  "--filesystem=xdg-run/app/com.discordapp.Discord:create",
  "--filesystem=xdg-music",
  "--filesystem=xdg-run/discord-ipc-0"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T16:08:49.930676+00:00",
 "manifest": {
  "app-id": "com.spacestation14.Launcher",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.dotnet10"
  ],
  "build-options": {
   "prepend-path": "/usr/lib/sdk/dotnet10/bin",
   "append-ld-library-path": "/usr/lib/sdk/dotnet10/lib",
   "env": {
    "PKG_CONFIG_PATH": "/app/lib/pkgconfig:/app/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/lib/sdk/dotnet10/lib/pkgconfig"
   }
  },
  "command": "wrapper.sh",
  "finish-args": [
   "--device=dri",
   "--device=all",
   "--share=ipc",
   "--share=network",
   "--socket=pulseaudio",
   "--socket=x11",
   "--filesystem=xdg-music",
   "--filesystem=xdg-run/app/com.discordapp.Discord:create",
   "--filesystem=xdg-run/discord-ipc-0",
   "--env=DOTNET_ROOT=/app/lib/dotnet"
  ],
  "modules": [
   {
    "name": "dotnet",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/dotnet10/bin/install.sh"
    ]
   },
   {
    "name": "space-station-14-launcher",
    "buildsystem": "simple",
    "build-commands": [
     "dotnet publish SS14.Launcher/SS14.Launcher.csproj /p:FullRelease=True -c Release -r $(./rid.sh) --no-self-contained --source ./nuget-sources",
     "dotnet publish SS14.Loader/SS14.Loader.csproj -c Release -r $(./rid.sh) --no-self-contained --source ./nuget-sources",
     "mkdir -p ${FLATPAK_DEST}/bin",
     "cp -r ${FLATPAK_BUILDER_BUILDDIR}/SS14.Launcher/bin/Release/net10.0/$(./rid.sh)/publish/* ${FLATPAK_DEST}/bin",
     "mkdir -p ${FLATPAK_DEST}/bin/loader",
     "cp -r ${FLATPAK_BUILDER_BUILDDIR}/SS14.Loader/bin/Release/net10.0/$(./rid.sh)/publish/* ${FLATPAK_DEST}/bin/loader"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/space-wizards/SS14.Launcher.git",
      "tag": "v0.37.1",
      "commit": "7ceb70afb6cf15ca6dddffdd1a47757ed68399d1"
     },
     "sources/space-station-14-launcher-nuget-sources.json",
     "sources/space-station-14-loader-nuget-sources.json",
     {
      "type": "file",
      "path": "rid.sh"
     }
    ]
   },
   {
    "name": "icon-file",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm644 icon-new.svg /app/share/icons/hicolor/scalable/apps/com.spacestation14.Launcher.svg"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/space-wizards/asset-dump.git",
      "commit": "5ffb49a2f4f3e6805a0b7bef31247eedebfe1043"
     }
    ]
   },
   {
    "name": "extra-data",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm644 com.spacestation14.Launcher.desktop -t /app/share/applications",
     "install -Dm644 com.spacestation14.Launcher.appdata.xml -t /app/share/metainfo",
     "install -Dm755 wrapper.sh -t ${FLATPAK_DEST}/bin"
    ],
    "sources": [
     {
      "type": "file",
      "path": "data/com.spacestation14.Launcher.desktop"
     },
     {
      "type": "file",
      "path": "data/com.spacestation14.Launcher.appdata.xml"
     },
     {
      "type": "file",
      "path": "data/wrapper.sh"
     }
    ]
   }
  ]
 }
}