{
 "app_id": "id.my.ttl.TruckersToolLinux",
 "source_url": "https://raw.githubusercontent.com/flathub/id.my.ttl.TruckersToolLinux/master/id.my.ttl.TruckersToolLinux.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=~/.local/share/American Truck Simulator",
  "--filesystem=~/.local/share/Euro Truck Simulator 2"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:10:04.899219+00:00",
 "manifest": {
  "app-id": "id.my.ttl.TruckersToolLinux",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "command": "run.sh",
  "separate-locales": false,
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node20"
  ],
  "finish-args": [
   "--share=network",
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=dri",
   "--filesystem=~/.local/share/Euro Truck Simulator 2:rw",
   "--filesystem=~/.local/share/American Truck Simulator:rw",
   "--env=ELECTRON_TRASH=gio"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/node20/bin",
   "env": {
    "NPM_CONFIG_LOGLEVEL": "info",
    "ELECTRON_CACHE": "/run/build/truckers-tool-linux/electron-cache",
    "ELECTRON_BUILDER_CACHE": "/run/build/truckers-tool-linux/electron-builder-cache"
   }
  },
  "modules": [
   {
    "name": "truckers-tool-linux",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "npm_config_offline": "true",
      "npm_config_cache": "/run/build/truckers-tool-linux/flatpak-node/npm-cache",
      "XDG_CACHE_HOME": "/run/build/truckers-tool-linux/flatpak-node/cache"
     }
    },
    "build-commands": [
     "npm ci --offline",
     "npm run build:all",
     "npx electron-builder --linux dir",
     "cp -a release/linux-unpacked /app/main",
     "install -Dm755 flatpak/run.sh -t /app/bin/",
     "install -Dm644 flatpak/id.my.ttl.TruckersToolLinux.desktop -t /app/share/applications/",
     "install -Dm644 flatpak/id.my.ttl.TruckersToolLinux.metainfo.xml -t /app/share/metainfo/",
     "install -Dm644 build/id.my.ttl.TruckersToolLinux.png /app/share/icons/hicolor/512x512/apps/id.my.ttl.TruckersToolLinux.png",
     "install -Dm644 build/id.my.ttl.TruckersToolLinux.svg /app/share/icons/hicolor/scalable/apps/id.my.ttl.TruckersToolLinux.svg"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/efzynx/truckers-tool-linux.git",
      "commit": "8585ce1b1fb10b68af695646028064d5df91cacd"
     },
     {
      "type": "file",
      "url": "https://github.com/electron/electron/releases/download/v40.8.5/electron-v40.8.5-linux-x64.zip",
      "sha256": "3bce6ee4e4e481f7ce6d0be384f6c539ce16e0b9b7f46115aec6516770f6c26d",
      "dest": "electron-cache",
      "dest-filename": "electron-v40.8.5-linux-x64.zip"
     },
     "flatpak-node-sources.json"
    ]
   }
  ]
 }
}