io.github.WallpaperEngineLover.we_manager.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # WE Manager with linux-wallpaperengine inside. Both come from their releases: the app's .deb and the engine's
  2. # portable tarball, which carries its own libraries except what this runtime provides (GTK, NSS, CUPS, Mesa,
  3. # PipeWire). fetch-sources.sh puts them next to this file, CI uses the .deb it just built.
  4. #
  5. # packaging/flatpak/fetch-sources.sh
  6. # flatpak-builder --user --install --force-clean build-dir packaging/flatpak/io.github.WallpaperEngineLover.we_manager.yml
  7. id: io.github.WallpaperEngineLover.we_manager
  8. runtime: org.freedesktop.Platform
  9. runtime-version: '25.08'
  10. sdk: org.freedesktop.Sdk
  11. base: org.electronjs.Electron2.BaseApp
  12. base-version: '25.08'
  13. command: we-manager
  14. separate-locales: false
  15. finish-args:
  16. - --share=ipc
  17. - --share=network
  18. - --socket=wayland
  19. - --socket=fallback-x11
  20. # wallpaper sounds, and the desktop audio the visualizers react to (the sink's monitor source)
  21. - --socket=pulseaudio
  22. - --device=dri
  23. # the Steam client's IPC (steamworks.js) uses shared memory
  24. - --device=shm
  25. # Steam libraries and workshop folders, Wallpaper Engine's assets, the user's own wallpaper folders
  26. - --filesystem=home
  27. - --filesystem=~/.var/app/com.valvesoftware.Steam
  28. # library folders on other disks
  29. - --filesystem=/mnt
  30. - --filesystem=/media
  31. - --filesystem=/run/media
  32. # the host's display tools (kscreen-doctor, wlr-randr, xrandr), wallpaper setters, the desktop icons overlay
  33. # and the programs user shortcuts start
  34. - --talk-name=org.freedesktop.Flatpak
  35. # KDE integration: KWin scripts for the cursor and fullscreen detection, which call back into the engine
  36. - --talk-name=org.kde.KWin
  37. - --talk-name=org.kde.plasmashell
  38. - --own-name=org.linuxwallpaperengine.*
  39. # media info for wallpapers that show the playing song
  40. - --talk-name=org.mpris.MediaPlayer2.*
  41. - --talk-name=org.kde.StatusNotifierWatcher
  42. - --talk-name=org.freedesktop.Notifications
  43. modules:
  44. - name: linux-wallpaperengine
  45. buildsystem: simple
  46. sources:
  47. - type: archive
  48. path: linux-wallpaperengine-kde-portable-x86_64.tar.gz
  49. dest: engine
  50. build-commands:
  51. - mkdir -p /app/lib/linux-wallpaperengine-kde /app/bin
  52. - cp -a engine/. /app/lib/linux-wallpaperengine-kde/
  53. - ln -s ../lib/linux-wallpaperengine-kde/linux-wallpaperengine /app/bin/linux-wallpaperengine
  54. - name: we-manager
  55. buildsystem: simple
  56. sources:
  57. - type: file
  58. path: we-manager.deb
  59. - type: file
  60. path: we-manager.sh
  61. - type: file
  62. path: io.github.WallpaperEngineLover.we_manager.metainfo.xml
  63. build-commands:
  64. - ar x we-manager.deb
  65. - tar -xf data.tar.*
  66. - cp -a "opt/WE Manager" /app/we-manager
  67. - install -Dm755 we-manager.sh /app/bin/we-manager
  68. - install -Dm644 usr/share/applications/we-manager.desktop /app/share/applications/${FLATPAK_ID}.desktop
  69. - desktop-file-edit --set-key=Exec --set-value='we-manager %U' --set-icon=${FLATPAK_ID}
  70. /app/share/applications/${FLATPAK_ID}.desktop
  71. - for size in 16 32 48 64 128 256; do install -Dm644 usr/share/icons/hicolor/${size}x${size}/apps/we-manager.png
  72. /app/share/icons/hicolor/${size}x${size}/apps/${FLATPAK_ID}.png; done
  73. - install -Dm644 ${FLATPAK_ID}.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml