mirror of
https://github.com/tcsenpai/UWINE.git
synced 2025-06-07 03:55:21 +00:00
fix flatpak display settings
This commit is contained in:
parent
405c244cd7
commit
24e84e8606
@ -1,7 +1,10 @@
|
|||||||
id: org.openwinecomponents.ulwgl.launcher
|
id: org.openwinecomponents.ulwgl.launcher
|
||||||
sdk: org.freedesktop.Sdk
|
|
||||||
runtime: org.freedesktop.Platform
|
runtime: org.freedesktop.Platform
|
||||||
runtime-version: '23.08'
|
runtime-version: &runtime-version '23.08'
|
||||||
|
x-gl-version: &gl-version '1.4'
|
||||||
|
x-gl-versions: &gl-versions 23.08;23.08-extra;1.4
|
||||||
|
x-gl-merge-dirs: &gl-merge-dirs vulkan/icd.d;glvnd/egl_vendor.d;OpenCL/vendors;lib/dri;lib/d3d;vulkan/explicit_layer.d;vulkan/implicit_layer.d
|
||||||
|
sdk: org.freedesktop.Sdk
|
||||||
command: ulwgl-run
|
command: ulwgl-run
|
||||||
separate-locales: false
|
separate-locales: false
|
||||||
|
|
||||||
@ -38,6 +41,7 @@ finish-args:
|
|||||||
- --env=SDL_VIDEODRIVER=
|
- --env=SDL_VIDEODRIVER=
|
||||||
- --unset-env=SDL_VIDEODRIVER
|
- --unset-env=SDL_VIDEODRIVER
|
||||||
- --env=DBUS_FATAL_WARNINGS=0
|
- --env=DBUS_FATAL_WARNINGS=0
|
||||||
|
- --env=XDG_CONFIG_DIRS=/etc/xdg:/usr/lib/x86_64-linux-gnu/GL:/usr/lib/i386-linux-gnu/GL
|
||||||
# Wine uses UDisks2 to enumerate disk drives
|
# Wine uses UDisks2 to enumerate disk drives
|
||||||
- --system-talk-name=org.freedesktop.UDisks2
|
- --system-talk-name=org.freedesktop.UDisks2
|
||||||
# should fix access to SD card on the deck
|
# should fix access to SD card on the deck
|
||||||
@ -52,7 +56,6 @@ finish-args:
|
|||||||
- --share=ipc
|
- --share=ipc
|
||||||
- --socket=wayland
|
- --socket=wayland
|
||||||
- --socket=x11
|
- --socket=x11
|
||||||
- --socket=fallback-x11
|
|
||||||
- --socket=pulseaudio
|
- --socket=pulseaudio
|
||||||
- --share=network
|
- --share=network
|
||||||
- --talk-name=org.freedesktop.Notifications
|
- --talk-name=org.freedesktop.Notifications
|
||||||
@ -63,53 +66,90 @@ finish-args:
|
|||||||
add-extensions:
|
add-extensions:
|
||||||
org.freedesktop.Platform.Compat.i386:
|
org.freedesktop.Platform.Compat.i386:
|
||||||
directory: lib/i386-linux-gnu
|
directory: lib/i386-linux-gnu
|
||||||
version: '23.08'
|
version: *runtime-version
|
||||||
|
|
||||||
org.freedesktop.Platform.Compat.i386.Debug:
|
org.freedesktop.Platform.Compat.i386.Debug:
|
||||||
directory: lib/debug/lib/i386-linux-gnu
|
directory: lib/debug/lib/i386-linux-gnu
|
||||||
version: '23.08'
|
version: *runtime-version
|
||||||
no-autodownload: true
|
no-autodownload: true
|
||||||
|
|
||||||
org.freedesktop.Platform.GL32:
|
org.freedesktop.Platform.GL32:
|
||||||
directory: lib/i386-linux-gnu/GL
|
directory: lib/i386-linux-gnu/GL
|
||||||
version: '23.08'
|
version: *gl-version
|
||||||
|
versions: *gl-versions
|
||||||
subdirectories: true
|
subdirectories: true
|
||||||
no-autodownload: true
|
no-autodownload: true
|
||||||
autodelete: false
|
autodelete: false
|
||||||
add-ld-path: lib
|
add-ld-path: lib
|
||||||
merge-dirs: vulkan/icd.d;glvnd/egl_vendor.d;OpenCL/vendors;lib/dri;lib/d3d;vulkan/explicit_layer.d;vulkan/implicit_layer.d;
|
merge-dirs: *gl-merge-dirs
|
||||||
download-if: active-gl-driver
|
download-if: active-gl-driver
|
||||||
enable-if: active-gl-driver
|
enable-if: active-gl-driver
|
||||||
|
autoprune-unless: active-gl-driver
|
||||||
|
|
||||||
x-compat-i386-opts: &compat_i386_opts
|
org.freedesktop.Platform.GL32.Debug:
|
||||||
prepend-pkg-config-path: /app/lib32/pkgconfig:/usr/lib/i386-linux-gnu/pkgconfig
|
directory: lib/debug/lib/i386-linux-gnu/GL
|
||||||
ldflags: -L/app/lib32
|
version: *gl-version
|
||||||
append-path: /usr/lib/sdk/toolchain-i386/bin
|
versions: *gl-versions
|
||||||
env:
|
subdirectories: true
|
||||||
CC: i686-unknown-linux-gnu-gcc
|
no-autodownload: true
|
||||||
CXX: i686-unknown-linux-gnu-g++
|
merge-dirs: *gl-merge-dirs
|
||||||
libdir: /app/lib32
|
enable-if: active-gl-driver
|
||||||
|
autoprune-unless: active-gl-driver
|
||||||
|
|
||||||
org.freedesktop.Platform.VAAPI.Intel.i386:
|
org.freedesktop.Platform.VAAPI.Intel.i386:
|
||||||
directory: lib/i386-linux-gnu/dri/intel-vaapi-driver
|
directory: lib/i386-linux-gnu/dri/intel-vaapi-driver
|
||||||
version: '23.08'
|
version: *runtime-version
|
||||||
versions: '23.08'
|
versions: *runtime-version
|
||||||
autodelete: false
|
autodelete: false
|
||||||
no-autodownload: true
|
no-autodownload: true
|
||||||
add-ld-path: lib
|
add-ld-path: lib
|
||||||
download-if: have-intel-gpu
|
download-if: have-intel-gpu
|
||||||
autoprune-unless: have-intel-gpu
|
autoprune-unless: have-intel-gpu
|
||||||
|
|
||||||
|
org.freedesktop.Platform.ffmpeg-full:
|
||||||
|
directory: lib/ffmpeg
|
||||||
|
add-ld-path: .
|
||||||
|
version: *runtime-version
|
||||||
|
no-autodownload: true
|
||||||
|
autodelete: false
|
||||||
|
|
||||||
|
org.freedesktop.Platform.ffmpeg_full.i386:
|
||||||
|
directory: lib32/ffmpeg
|
||||||
|
add-ld-path: .
|
||||||
|
version: *runtime-version
|
||||||
|
no-autodownload: true
|
||||||
|
autodelete: false
|
||||||
|
|
||||||
|
com.valvesoftware.Steam.CompatibilityTool:
|
||||||
|
subdirectories: true
|
||||||
|
directory: share/steam/compatibilitytools.d
|
||||||
|
version: stable
|
||||||
|
versions: stable;beta;test
|
||||||
|
no-autodownload: true
|
||||||
|
autodelete: true
|
||||||
|
|
||||||
com.valvesoftware.Steam.Utility:
|
com.valvesoftware.Steam.Utility:
|
||||||
subdirectories: true
|
subdirectories: true
|
||||||
directory: utils
|
directory: utils
|
||||||
version: stable
|
version: stable
|
||||||
versions: stable;beta;test
|
versions: stable;beta;test
|
||||||
add-ld-path: lib
|
add-ld-path: lib
|
||||||
merge-dirs: bin
|
merge-dirs: bin;lib/python3.10/site-packages;share/vulkan/explicit_layer.d;share/vulkan/implicit_layer.d;share/steam/compatibilitytools.d;
|
||||||
no-autodownload: true
|
no-autodownload: true
|
||||||
autodelete: true
|
autodelete: true
|
||||||
|
|
||||||
|
cleanup:
|
||||||
|
- /lib/*.a
|
||||||
|
- /lib/*.la
|
||||||
|
- /lib32/*.a
|
||||||
|
- /lib32/*.la
|
||||||
|
- /share/doc
|
||||||
|
- /share/gtk-doc
|
||||||
|
- /share/man
|
||||||
|
|
||||||
|
cleanup-commands:
|
||||||
|
- python3 -m compileall --invalidation-mode=unchecked-hash /app
|
||||||
|
|
||||||
modules:
|
modules:
|
||||||
# --- ULWGL ---
|
# --- ULWGL ---
|
||||||
- name: ulwgl-run
|
- name: ulwgl-run
|
||||||
@ -121,8 +161,8 @@ modules:
|
|||||||
- type: file
|
- type: file
|
||||||
path: ulwgl-run
|
path: ulwgl-run
|
||||||
- type: file
|
- type: file
|
||||||
url: https://github.com/Open-Wine-Components/ULWGL-launcher/releases/download/0.1-RC2/ULWGL-launcher.tar.gz
|
url: https://github.com/Open-Wine-Components/ULWGL-launcher/releases/download/0.1-RC1/ULWGL-launcher.tar.gz
|
||||||
sha256: 9c7a5102d2e010165527b4d903d77ca4a453401d9a654b1edfa101dc17236930
|
sha256: 11a85f0acaf5a3bec8dbef7c7f97e111e7d2eb5932c980346907cc5a9aad8811
|
||||||
|
|
||||||
- name: platform-bootstrap
|
- name: platform-bootstrap
|
||||||
buildsystem: simple
|
buildsystem: simple
|
||||||
@ -130,15 +170,26 @@ modules:
|
|||||||
- |
|
- |
|
||||||
set -e
|
set -e
|
||||||
mkdir -p /app/bin
|
mkdir -p /app/bin
|
||||||
mkdir -p /app/utils
|
|
||||||
mkdir -p /app/lib/i386-linux-gnu
|
mkdir -p /app/lib/i386-linux-gnu
|
||||||
mkdir -p /app/lib/debug/lib/i386-linux-gnu
|
|
||||||
mkdir -p /app/lib/i386-linux-gnu/GL
|
mkdir -p /app/lib/i386-linux-gnu/GL
|
||||||
mkdir -p /app/lib/i386-linux-gnu/dri/intel-vaapi-driver
|
mkdir -p /app/lib/i386-linux-gnu/dri/intel-vaapi-driver
|
||||||
|
mkdir -p /app/lib/debug/lib/i386-linux-gnu
|
||||||
|
mkdir -p /app/lib/debug/lib/i386-linux-gnu/GL
|
||||||
install -Dm644 -t /app/etc ld.so.conf
|
install -Dm644 -t /app/etc ld.so.conf
|
||||||
|
mkdir -p /app/lib{,32}/ffmpeg
|
||||||
|
mkdir -p /app/share/steam/compatibilitytools.d
|
||||||
|
mkdir -p /app/utils /app/share/vulkan
|
||||||
|
ln -srv /app/{utils/,}share/vulkan/explicit_layer.d
|
||||||
|
ln -srv /app/{utils/,}share/vulkan/implicit_layer.d
|
||||||
|
mkdir -p /app/links/lib
|
||||||
|
ln -srv /app/lib /app/links/lib/x86_64-linux-gnu
|
||||||
|
ln -srv /app/lib32 /app/links/lib/i386-linux-gnu
|
||||||
sources:
|
sources:
|
||||||
- type: inline
|
- type: inline
|
||||||
dest-filename: ld.so.conf
|
dest-filename: ld.so.conf
|
||||||
contents: |
|
contents: |
|
||||||
|
# We just make any GL32 extension have higher priority
|
||||||
|
include /run/flatpak/ld.so.conf.d/app-*-org.freedesktop.Platform.GL32.*.conf
|
||||||
/app/lib32
|
/app/lib32
|
||||||
/app/lib/i386-linux-gnu
|
/app/lib/i386-linux-gnu
|
||||||
|
/lib64
|
||||||
|
Loading…
x
Reference in New Issue
Block a user