io.github.WallpaperEngineLover.we_manager.yml 3.1 KB

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