{
  // Mandatory
  "manifest_version": 1,
  "type": "WebApp",

  // Mandatory, app metadata
  "meta": {
    "name": "hackerboy-gpt",
    "author": "H@CKERBOY",
    "version": "1.2.3.456",
    "minimum-overwolf-version": "128.0.0.1",
    "minimum-gep-version": "128.0.0.1",
    "description": "Explorez H@CKERBOY GPT — une intelligence artificielle créée par un développeur passionné de cybersécurité, IA et logiciels.",
    "dock_button_title": "Hackerboy-GPT",
    "icon": "GPT.png",
    "icon_gray": "GPT.png",
    "launcher_icon": "favicon.ico",
    "splash_image": "splashIcon.png",
    "window_icon": "windowIcon.png"
  },

  // Permissions required by the app
  "permissions": [
    "Streaming",
    "Hotkeys",
    "GameInfo"
  ],

  "max_rotation_log_files": 20,

  // Mandatory, additional metadata
  "data": {
    // Game targeting settings
    "game_targeting": {
      "type": "dedicated",
      "game_ids": [10906, 7764]
    },

    // Window loaded at startup
    "start_window": "mainWindow",

    // Isolation for security
    "enable_top_isolation": true,

    // Window definitions
    "windows": {
      "mainWindow": {
        "file": "index.html",
        "show_in_taskbar": true,
        "transparent": true,
        "override_on_update": true,
        "resizable": false,
        "show_minimize": true,
        "show_maximize": true,
        "clickthrough": false,
        "style": "inputPassThrough",
        "disable_rightclick": false,
        "forcecapture": false,
        "show_only_on_stream": false,
        "ignore_keyboard_events": false,
        "in_game_only": false,
        "desktop_only": false,
        "disable_restore_animation": false,
        "grab_keyboard_focus": false,
        "size": { "width": 800, "height": 600 },
        "min_size": { "width": 400, "height": 300 },
        "max_size": { "width": 1920, "height": 1080 },
        "start_position": { "left": 100, "top": 100 },
        "topmost": false,
        "bottommost": false,
        "block_top_window_navigation": true,
        "keep_window_location": true,
        "use_os_windowing": false,
        "background_optimization": true,
        "mute": true,
        "mute_excluded_hosts": ["sound.google.com"],
        "popup_blocker": false,
        "disable_blur": false,
        "native_window": false,
        "is_background_page": true,
        "focus_game_takeover": "ReleaseOnLostFocus",
        "focus_game_takeover_release_hotkey": "Ctrl+Shift+L",
        "allow_local_file_access": true,
        "is_alt_f4_blocked": false,
        "dev_tools_window_style": false,
        "optimize_accelerate_rendering": false,
        "disable_auto_dpi_sizing": false,
        "restrict_to_game_bounds": false,
        "disable_hardware_acceleration": false,
        "open_dev_tools": true
      }
    },

    // Console logs for isolated sites
    "enable_top_isolated_sites_console": false,

    // External URLs accessible by the app
    "externally_connectable": {
      "matches": [
        "http://*.overwolf.com",
        "https://*.overwolf.com",
        "https://*.google-analytics.com"
      ]
    },

    // Protocol overrides
    "protocol_override_domains": {
      "domain.com": "http",
      "ajax.googleapis.com": "https"
    },

    // Use system browser for links
    "force_browser": "user",

    // OSR/GPU acceleration
    "enable_osr_acceleration": true,

    // Game events to subscribe
    "game_events": ["GameStart", "GameEnd"],

    // Disable default log limit
    "disable_log_limit": false,

    // Custom plugin DLLs
    "extra-objects": {
      "my-plugin": {
        "file": "plugins/my_plugin.dll",
        "class": "MyPlugin.EntryPoint"
      }
    },

    // Hotkeys configuration
    "hotkeys": {
      "save_replay": {
        "title": "Save Replay for Later",
        "action-type": "custom",
        "default": "Ctrl+Shift+F9"
      }
    },

    // Content scripts
    "content_scripts": [
      {
        "windows": ["mainWindow"],
        "js": ["myscript.js"]
      }
    ],

    // Launch on game launch
    "launch_events": [
      {
        "event": "GameLaunch",
        "event_data": { "game_ids": [1136] },
        "start_minimized": true
      }
    ],

    // Disable developer tools for end-users
    "disable_dt": false,

    // Service provider custom data
    "service_providers": {
      "nafihghfcpikebhfhdhljejkcifgbdahdhngepfb": {
        "whatever": "value"
      }
    },

    // Developer-only settings
    "developer": {
      "enable_auto_refresh": true,
      "reload_delay": 1000,
      "filter": "*.json;*.html"
    },

    // Preserve local data after uninstall
    "disable_cleanup": true,

    // Custom process name
    "process_name": "hackerboy-gpt",

    // URL protocol handler
    "url_protocol": {
      "scheme": "testscheme"
    },

    // Uninstall window (background)
    "uninstall_window": {
      "file": "uninstall.html",
      "required_runtime": 1000
    },

    // Relaunch on crash up to 5 fois
    "auto_relaunch_on_crash": true
  }
}
