fluxa-desktop/src-tauri/tauri.conf.json
KhooLy bdeea190d1 feat(desktop): HDR display output support (Windows)
- windows_d3d11.rs / windows_player_surface.rs: detect whether the
  active display supports HDR and, when the "HDR output" preference is
  on, create the D3D11 swap chain with an HDR-capable format; expose
  hdr_display_supported() for the frontend to query.
- mpv_render.rs: drop the now-redundant format/width/height fields
  from the D3D11 render target — mpv_d3d11_fbo only needs the texture,
  which already carries its own format/dimensions.
- linux_player_surface.rs: track whether the current Vulkan context is
  HDR-capable on a shared flag for parity with the Windows path.
- storage.rs: add read_pref_bool() to read boolean prefs (used for the
  hdrEnabled toggle).
- lib.rs: register the player_hdr_supported command; tauri.conf.json
  sets a transparent window background so HDR/SDR compositing doesn't
  show a black flash.
- Frontend: add an "HDR output" toggle in Playback settings, auto-detect
  and store display support on first run via player_hdr_supported.
2026-07-27 16:17:18 +03:00

74 lines
2.2 KiB
JSON

{
"$schema": "https://schema.tauri.app/config/2",
"productName": "Fluxa Desktop",
"version": "../package.json",
"identifier": "com.fluxa.desktop",
"build": {
"frontendDist": "../dist",
"devUrl": "http://localhost:1420",
"beforeDevCommand": "npm run dev",
"beforeBuildCommand": "npm run build"
},
"app": {
"windows": [
{
"title": "Fluxa Desktop",
"width": 1280,
"height": 800,
"minWidth": 900,
"minHeight": 600,
"decorations": true,
"transparent": true,
"backgroundColor": "#00000000",
"theme": "Dark"
}
],
"security": {
"csp": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' asset: http: https: data: blob:; media-src 'self' http: https: blob:; connect-src 'self' ipc: http://ipc.localhost http: https:; object-src 'none'; base-uri 'self'; frame-ancestors 'none'",
"assetProtocol": {
"enable": true,
"scope": ["$APPDATA/fluxa/PosterCache/*"]
}
}
},
"bundle": {
"active": true,
"targets": ["deb", "rpm", "appimage", "nsis", "dmg", "app"],
"createUpdaterArtifacts": true,
"windows": {
"nsis": {
"installMode": "both"
}
},
"icon": ["icons/32x32.png", "icons/128x128.png", "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico"],
"resources": ["lib/**/*", "assets/mpv-shaders/**/*"],
"linux": {
"appimage": {
"bundleMediaFramework": true
},
"deb": {
"depends": ["gstreamer1.0-plugins-base", "gstreamer1.0-plugins-good"]
},
"rpm": {
"depends": ["gstreamer1-plugins-base", "gstreamer1-plugins-good"]
}
}
},
"plugins": {
"updater": {
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDkwMTE2RTg4MzgwRTJDRjcKUldUM0xBNDRpRzRSa0dobkJZZlN5LzdWWi9GR1h2UTVqMXV5cHBGS1JZYmJiTXZ6NCtmU1BIb1MK",
"endpoints": [
"https://github.com/FluxaMedia/fluxa-desktop/releases/latest/download/latest.json"
],
"windows": {
"installMode": "quiet"
}
},
"deep-link": {
"mobile": [],
"desktop": {
"schemes": ["fluxa"]
}
}
}
}