rustdesk.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {
  2. "id": "com.rustdesk.RustDesk",
  3. "runtime": "org.freedesktop.Platform",
  4. "runtime-version": "23.08",
  5. "sdk": "org.freedesktop.Sdk",
  6. "command": "rustdesk",
  7. "icon": "share/icons/hicolor/scalable/apps/rustdesk.svg",
  8. "modules": [
  9. "shared-modules/libappindicator/libappindicator-gtk3-12.10.json",
  10. "xdotool.json",
  11. {
  12. "name": "pam",
  13. "buildsystem": "simple",
  14. "build-commands": [
  15. "./configure --disable-selinux --prefix=/app && make -j4 install"
  16. ],
  17. "sources": [
  18. {
  19. "type": "archive",
  20. "url": "https://github.com/linux-pam/linux-pam/releases/download/v1.3.1/Linux-PAM-1.3.1.tar.xz",
  21. "sha256": "eff47a4ecd833fbf18de9686632a70ee8d0794b79aecb217ebd0ce11db4cd0db"
  22. }
  23. ]
  24. },
  25. {
  26. "name": "rustdesk",
  27. "buildsystem": "simple",
  28. "build-commands": [
  29. "bsdtar -zxvf rustdesk.deb",
  30. "tar -xvf ./data.tar.xz",
  31. "cp -r ./usr/* /app/",
  32. "mkdir -p /app/bin && ln -s /app/lib/rustdesk/rustdesk /app/bin/rustdesk",
  33. "mv /app/share/applications/rustdesk.desktop /app/share/applications/com.rustdesk.RustDesk.desktop",
  34. "mv /app/share/applications/rustdesk-link.desktop /app/share/applications/com.rustdesk.RustDesk-link.desktop",
  35. "sed -i '/^Icon=/ c\\Icon=com.rustdesk.RustDesk' /app/share/applications/*.desktop",
  36. "mv /app/share/icons/hicolor/scalable/apps/rustdesk.svg /app/share/icons/hicolor/scalable/apps/com.rustdesk.RustDesk.svg",
  37. "for size in 16 24 32 48 64 128 256 512; do\n rsvg-convert -w $size -h $size -f png -o $size.png scalable.svg\n install -Dm644 $size.png /app/share/icons/hicolor/${size}x${size}/apps/com.rustdesk.RustDesk.png\n done"
  38. ],
  39. "cleanup": ["/include", "/lib/pkgconfig", "/share/gtk-doc"],
  40. "sources": [
  41. {
  42. "type": "file",
  43. "path": "./rustdesk.deb"
  44. },
  45. {
  46. "type": "file",
  47. "path": "../res/scalable.svg"
  48. }
  49. ]
  50. }
  51. ],
  52. "finish-args": [
  53. "--share=ipc",
  54. "--socket=x11",
  55. "--socket=fallback-x11",
  56. "--socket=wayland",
  57. "--share=network",
  58. "--filesystem=home",
  59. "--device=dri",
  60. "--socket=pulseaudio",
  61. "--talk-name=org.freedesktop.Flatpak"
  62. ]
  63. }