AppImageBuilder-x86_64.yml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. # appimage-builder recipe see https://appimage-builder.readthedocs.io for details
  2. version: 1
  3. script:
  4. - rm -rf ./AppDir || true
  5. - bsdtar -zxvf rustdesk.deb
  6. - tar -xvf ./data.tar.xz
  7. - mkdir ./AppDir
  8. - mv ./usr ./AppDir/usr
  9. # 32x32 icon
  10. - for i in {32,64,128}; do mkdir -p ./AppDir/usr/share/icons/hicolor/$i\x$i/apps/; cp ../res/$i\x$i.png ./AppDir/usr/share/icons/hicolor/$i\x$i/apps/rustdesk.png; done
  11. - mkdir -p ./AppDir/usr/share/icons/hicolor/scalable/apps/; cp ../res/scalable.svg ./AppDir/usr/share/icons/hicolor/scalable/apps/rustdesk.svg
  12. # desktop file
  13. # - sed -i "s/Icon=\/usr\/share\/rustdesk\/files\/rustdesk.png/Icon=rustdesk/g" ./AppDir/usr/share/applications/rustdesk.desktop
  14. - rm -rf ./AppDir/usr/share/applications
  15. AppDir:
  16. path: ./AppDir
  17. app_info:
  18. id: rustdesk
  19. name: rustdesk
  20. icon: rustdesk
  21. version: 1.3.3
  22. exec: usr/lib/rustdesk/rustdesk
  23. exec_args: $@
  24. apt:
  25. arch:
  26. - amd64
  27. allow_unauthenticated: true
  28. sources:
  29. - sourceline: deb http://archive.ubuntu.com/ubuntu/ focal main restricted
  30. - sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted
  31. - sourceline: deb http://archive.ubuntu.com/ubuntu/ focal universe
  32. - sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-updates universe
  33. - sourceline: deb http://archive.ubuntu.com/ubuntu/ focal multiverse
  34. - sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-updates multiverse
  35. - sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted
  36. universe multiverse
  37. - sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted
  38. universe multiverse
  39. include:
  40. # https://github.com/rustdesk/rustdesk/issues/9103
  41. # Because of APPDIR_LIBRARY_PATH, this libc6 is not used, use LD_PRELOAD: $APPDIR/usr/lib/x86_64-linux-gnu/libc.so.6 may help, If you have time, please have a try.
  42. # We modify APPDIR_LIBRARY_PATH to use system lib first because gst crashed if not doing so, but you can try to change it.
  43. - libc6:amd64
  44. - libgtk-3-0
  45. - libxcb-randr0
  46. - libxdo3
  47. - libxfixes3
  48. - libxcb-shape0
  49. - libxcb-xfixes0
  50. - libasound2
  51. - libsystemd0
  52. - curl
  53. - libva-drm2
  54. - libva-x11-2
  55. - libvdpau1
  56. - libgstreamer-plugins-base1.0-0
  57. - gstreamer1.0-pipewire
  58. - libwayland-client0
  59. - libwayland-cursor0
  60. - libwayland-egl1
  61. - libpulse0
  62. - packagekit-gtk3-module
  63. - libcanberra-gtk3-module
  64. - libpam0g
  65. - libdrm2
  66. exclude:
  67. - humanity-icon-theme
  68. - hicolor-icon-theme
  69. - adwaita-icon-theme
  70. - ubuntu-mono
  71. files:
  72. include: []
  73. exclude:
  74. - usr/share/man
  75. - usr/share/doc/*/README.*
  76. - usr/share/doc/*/changelog.*
  77. - usr/share/doc/*/NEWS.*
  78. - usr/share/doc/*/TODO.*
  79. runtime:
  80. env:
  81. GIO_MODULE_DIR: /lib64/gio/modules:/usr/lib/x86_64-linux-gnu/gio/modules:$APPDIR/usr/lib/x86_64-linux-gnu/gio/modules
  82. GDK_BACKEND: x11
  83. APPDIR_LIBRARY_PATH: /lib64:/usr/lib/x86_64-linux-gnu:$APPDIR/lib/x86_64-linux-gnu:$APPDIR/lib/x86_64-linux-gnu/security:$APPDIR/lib/systemd:$APPDIR/usr/lib/x86_64-linux-gnu:$APPDIR/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders:$APPDIR/usr/lib/x86_64-linux-gnu/gstreamer-1.0:$APPDIR/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules:$APPDIR/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/printbackends:$APPDIR/usr/lib/x86_64-linux-gnu/krb5/plugins/preauth:$APPDIR/usr/lib/x86_64-linux-gnu/libcanberra-0.30:$APPDIR/usr/lib/x86_64-linux-gnu/pulseaudio:$APPDIR/usr/lib/x86_64-linux-gnu/sasl2:$APPDIR/usr/lib/x86_64-linux-gnu/vdpau:$APPDIR/usr/lib/rustdesk/lib:$APPDIR/lib/x86_64
  84. GST_PLUGIN_PATH: /lib64/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0:$APPDIR/usr/lib/x86_64-linux-gnu/gstreamer-1.0
  85. GST_PLUGIN_SYSTEM_PATH: /lib64/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0:$APPDIR/usr/lib/x86_64-linux-gnu/gstreamer-1.0
  86. test:
  87. fedora-30:
  88. image: appimagecrafters/tests-env:fedora-30
  89. command: ./AppRun
  90. debian-stable:
  91. image: appimagecrafters/tests-env:debian-stable
  92. command: ./AppRun
  93. archlinux-latest:
  94. image: appimagecrafters/tests-env:archlinux-latest
  95. command: ./AppRun
  96. centos-7:
  97. image: appimagecrafters/tests-env:centos-7
  98. command: ./AppRun
  99. ubuntu-xenial:
  100. image: appimagecrafters/tests-env:ubuntu-xenial
  101. command: ./AppRun
  102. AppImage:
  103. arch: x86_64
  104. update-information: guess